{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Naive Bayes - Trabalho\n",
    "\n",
    "## Questão 1\n",
    "\n",
    "Implemente um classifacor Naive Bayes para o problema de predizer a qualidade de um carro. Para este fim, utilizaremos um conjunto de dados referente a qualidade de carros, disponível no [UCI](https://archive.ics.uci.edu/ml/datasets/car+evaluation). Este dataset de carros possui as seguintes features e classe:\n",
    "\n",
    "** Attributos **\n",
    "1. buying: vhigh, high, med, low\n",
    "2. maint: vhigh, high, med, low\n",
    "3. doors: 2, 3, 4, 5, more\n",
    "4. persons: 2, 4, more\n",
    "5. lug_boot: small, med, big\n",
    "6. safety: low, med, high\n",
    "\n",
    "** Classes **\n",
    "1. unacc, acc, good, vgood\n",
    "\n",
    "## Questão 2\n",
    "Crie uma versão de sua implementação usando as funções disponíveis na biblioteca SciKitLearn para o Naive Bayes ([veja aqui](http://scikit-learn.org/stable/modules/naive_bayes.html)) \n",
    "\n",
    "## Questão 3\n",
    "\n",
    "Analise a acurácia dos dois algoritmos e discuta a sua solução."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "### Sem utilizar o scikit learn:"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Lendo arquivo de dados:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import csv\n",
    " \n",
    "def loadCsv(filename):\n",
    "    lines = csv.reader(open(filename, \"r\"))\n",
    "    dataset = list(lines)\n",
    "    for i in range(len(dataset)):\n",
    "        dataset[i] = [x for x in dataset[i]]\n",
    "    return dataset"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "data = loadCsv('carData.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['vhigh', 'vhigh', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '2', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '3', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '4', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'vhigh', '5more', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '2', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '3', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '4', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', '4', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'high', '5more', 'more', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '2', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '3', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'med', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '4', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '4', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'med', '4', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '4', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'med', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'med', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'med', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '2', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '3', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'low', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '4', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '4', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'low', '4', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '4', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'low', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'low', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['vhigh', 'low', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'vhigh', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', '4', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '2', 'more', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', '4', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '3', 'more', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', '4', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '4', 'more', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', '4', 'big', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'med', 'high', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'big', 'med', 'unacc'],\n",
       " ['high', 'vhigh', '5more', 'more', 'big', 'high', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'high', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '2', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '2', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'high', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '3', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '3', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'high', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'high', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'high', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '4', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'high', '4', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '4', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '4', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'high', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'high', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'high', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'high', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'high', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'high', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'high', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'high', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'high', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'high', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'high', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'med', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '2', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '2', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'med', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '3', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '3', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'med', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'med', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'med', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '4', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'med', '4', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '4', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '4', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'med', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'med', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'med', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'med', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'med', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'med', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'med', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'med', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'med', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'med', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'med', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'low', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '2', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '2', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'low', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '3', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '3', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'low', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'low', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'low', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '4', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'low', '4', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '4', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '4', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'low', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['high', 'low', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['high', 'low', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['high', 'low', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['high', 'low', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['high', 'low', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['high', 'low', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['high', 'low', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['high', 'low', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['high', 'low', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['high', 'low', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', '4', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '2', '4', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', '2', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'small', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'med', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'big', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', '2', 'big', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', '4', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', '4', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', '4', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '3', '4', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', 'more', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', 'more', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '3', 'more', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', 'more', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', 'more', 'med', 'med', 'acc'],\n",
       " ['med', 'vhigh', '3', 'more', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '3', 'more', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '3', 'more', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '3', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', '2', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'small', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'med', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'big', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '4', '2', 'big', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '4', '4', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '4', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '4', '4', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', '4', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '4', 'med', 'med', 'acc'],\n",
       " ['med', 'vhigh', '4', '4', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', '4', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', '4', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '4', '4', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', 'more', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', 'more', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '4', 'more', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', 'more', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', 'more', 'med', 'med', 'acc'],\n",
       " ['med', 'vhigh', '4', 'more', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '4', 'more', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '4', 'more', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '4', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', '2', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'small', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'med', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'med', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'big', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '2', 'big', 'high', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '4', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '4', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '4', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', '4', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '4', 'med', 'med', 'acc'],\n",
       " ['med', 'vhigh', '5more', '4', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', '4', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', '4', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '5more', '4', 'big', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'small', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'small', 'med', 'unacc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'small', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'med', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'med', 'med', 'acc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'med', 'high', 'acc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'big', 'low', 'unacc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'big', 'med', 'acc'],\n",
       " ['med', 'vhigh', '5more', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'high', '2', '2', 'small', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'small', 'med', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'small', 'high', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'med', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'med', 'med', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'med', 'high', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'big', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'big', 'med', 'unacc'],\n",
       " ['med', 'high', '2', '2', 'big', 'high', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'small', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'small', 'med', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'small', 'high', 'acc'],\n",
       " ['med', 'high', '2', '4', 'med', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'med', 'med', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'med', 'high', 'acc'],\n",
       " ['med', 'high', '2', '4', 'big', 'low', 'unacc'],\n",
       " ['med', 'high', '2', '4', 'big', 'med', 'acc'],\n",
       " ['med', 'high', '2', '4', 'big', 'high', 'acc'],\n",
       " ['med', 'high', '2', 'more', 'small', 'low', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'small', 'med', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'small', 'high', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'med', 'low', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'med', 'med', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'med', 'high', 'acc'],\n",
       " ['med', 'high', '2', 'more', 'big', 'low', 'unacc'],\n",
       " ['med', 'high', '2', 'more', 'big', 'med', 'acc'],\n",
       " ['med', 'high', '2', 'more', 'big', 'high', 'acc'],\n",
       " ['med', 'high', '3', '2', 'small', 'low', 'unacc'],\n",
       " ...]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1728"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(data)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Transformando dados categóricos em dados numéricos:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def encode(dataset):\n",
    "    encoded_copy = dataset\n",
    "    feature_list = []\n",
    "    #Obtendo numero de colunas do dataset\n",
    "    for i in range(len(dataset[0])):\n",
    "        #Para cada coluna criamos uma lista, que irá armazenar as features distintas\n",
    "        listE = []\n",
    "        feature_list.append(listE)\n",
    "        \n",
    "    #Agora verificamos o número distinto de features em cada coluna e inserimos na nossa lista de features\n",
    "    for i in range(len(dataset[0])):\n",
    "        for j in dataset:\n",
    "            if(j[i] not in feature_list[i]):\n",
    "                feature_list[i].append(j[i])\n",
    "                \n",
    "    #Agora percorreremos a cópia do dataset e compararemos com nossa lista de features. Caso um elemento \n",
    "    #for igual à feature, o substituiremos pelo seu índice na lista de features.\n",
    "    \n",
    "    for i in range(len(encoded_copy[0])):\n",
    "        for j in encoded_copy:\n",
    "            if(j[i] in feature_list[i]):\n",
    "                j[i] = feature_list[i].index(j[i])\n",
    "            \n",
    "    return encoded_copy"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "listE = encode(data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[0, 0, 0, 0, 0, 0, 0],\n",
       " [0, 0, 0, 0, 0, 1, 0],\n",
       " [0, 0, 0, 0, 0, 2, 0],\n",
       " [0, 0, 0, 0, 1, 0, 0],\n",
       " [0, 0, 0, 0, 1, 1, 0],\n",
       " [0, 0, 0, 0, 1, 2, 0],\n",
       " [0, 0, 0, 0, 2, 0, 0],\n",
       " [0, 0, 0, 0, 2, 1, 0],\n",
       " [0, 0, 0, 0, 2, 2, 0],\n",
       " [0, 0, 0, 1, 0, 0, 0],\n",
       " [0, 0, 0, 1, 0, 1, 0],\n",
       " [0, 0, 0, 1, 0, 2, 0],\n",
       " [0, 0, 0, 1, 1, 0, 0],\n",
       " [0, 0, 0, 1, 1, 1, 0],\n",
       " [0, 0, 0, 1, 1, 2, 0],\n",
       " [0, 0, 0, 1, 2, 0, 0],\n",
       " [0, 0, 0, 1, 2, 1, 0],\n",
       " [0, 0, 0, 1, 2, 2, 0],\n",
       " [0, 0, 0, 2, 0, 0, 0],\n",
       " [0, 0, 0, 2, 0, 1, 0],\n",
       " [0, 0, 0, 2, 0, 2, 0],\n",
       " [0, 0, 0, 2, 1, 0, 0],\n",
       " [0, 0, 0, 2, 1, 1, 0],\n",
       " [0, 0, 0, 2, 1, 2, 0],\n",
       " [0, 0, 0, 2, 2, 0, 0],\n",
       " [0, 0, 0, 2, 2, 1, 0],\n",
       " [0, 0, 0, 2, 2, 2, 0],\n",
       " [0, 0, 1, 0, 0, 0, 0],\n",
       " [0, 0, 1, 0, 0, 1, 0],\n",
       " [0, 0, 1, 0, 0, 2, 0],\n",
       " [0, 0, 1, 0, 1, 0, 0],\n",
       " [0, 0, 1, 0, 1, 1, 0],\n",
       " [0, 0, 1, 0, 1, 2, 0],\n",
       " [0, 0, 1, 0, 2, 0, 0],\n",
       " [0, 0, 1, 0, 2, 1, 0],\n",
       " [0, 0, 1, 0, 2, 2, 0],\n",
       " [0, 0, 1, 1, 0, 0, 0],\n",
       " [0, 0, 1, 1, 0, 1, 0],\n",
       " [0, 0, 1, 1, 0, 2, 0],\n",
       " [0, 0, 1, 1, 1, 0, 0],\n",
       " [0, 0, 1, 1, 1, 1, 0],\n",
       " [0, 0, 1, 1, 1, 2, 0],\n",
       " [0, 0, 1, 1, 2, 0, 0],\n",
       " [0, 0, 1, 1, 2, 1, 0],\n",
       " [0, 0, 1, 1, 2, 2, 0],\n",
       " [0, 0, 1, 2, 0, 0, 0],\n",
       " [0, 0, 1, 2, 0, 1, 0],\n",
       " [0, 0, 1, 2, 0, 2, 0],\n",
       " [0, 0, 1, 2, 1, 0, 0],\n",
       " [0, 0, 1, 2, 1, 1, 0],\n",
       " [0, 0, 1, 2, 1, 2, 0],\n",
       " [0, 0, 1, 2, 2, 0, 0],\n",
       " [0, 0, 1, 2, 2, 1, 0],\n",
       " [0, 0, 1, 2, 2, 2, 0],\n",
       " [0, 0, 2, 0, 0, 0, 0],\n",
       " [0, 0, 2, 0, 0, 1, 0],\n",
       " [0, 0, 2, 0, 0, 2, 0],\n",
       " [0, 0, 2, 0, 1, 0, 0],\n",
       " [0, 0, 2, 0, 1, 1, 0],\n",
       " [0, 0, 2, 0, 1, 2, 0],\n",
       " [0, 0, 2, 0, 2, 0, 0],\n",
       " [0, 0, 2, 0, 2, 1, 0],\n",
       " [0, 0, 2, 0, 2, 2, 0],\n",
       " [0, 0, 2, 1, 0, 0, 0],\n",
       " [0, 0, 2, 1, 0, 1, 0],\n",
       " [0, 0, 2, 1, 0, 2, 0],\n",
       " [0, 0, 2, 1, 1, 0, 0],\n",
       " [0, 0, 2, 1, 1, 1, 0],\n",
       " [0, 0, 2, 1, 1, 2, 0],\n",
       " [0, 0, 2, 1, 2, 0, 0],\n",
       " [0, 0, 2, 1, 2, 1, 0],\n",
       " [0, 0, 2, 1, 2, 2, 0],\n",
       " [0, 0, 2, 2, 0, 0, 0],\n",
       " [0, 0, 2, 2, 0, 1, 0],\n",
       " [0, 0, 2, 2, 0, 2, 0],\n",
       " [0, 0, 2, 2, 1, 0, 0],\n",
       " [0, 0, 2, 2, 1, 1, 0],\n",
       " [0, 0, 2, 2, 1, 2, 0],\n",
       " [0, 0, 2, 2, 2, 0, 0],\n",
       " [0, 0, 2, 2, 2, 1, 0],\n",
       " [0, 0, 2, 2, 2, 2, 0],\n",
       " [0, 0, 3, 0, 0, 0, 0],\n",
       " [0, 0, 3, 0, 0, 1, 0],\n",
       " [0, 0, 3, 0, 0, 2, 0],\n",
       " [0, 0, 3, 0, 1, 0, 0],\n",
       " [0, 0, 3, 0, 1, 1, 0],\n",
       " [0, 0, 3, 0, 1, 2, 0],\n",
       " [0, 0, 3, 0, 2, 0, 0],\n",
       " [0, 0, 3, 0, 2, 1, 0],\n",
       " [0, 0, 3, 0, 2, 2, 0],\n",
       " [0, 0, 3, 1, 0, 0, 0],\n",
       " [0, 0, 3, 1, 0, 1, 0],\n",
       " [0, 0, 3, 1, 0, 2, 0],\n",
       " [0, 0, 3, 1, 1, 0, 0],\n",
       " [0, 0, 3, 1, 1, 1, 0],\n",
       " [0, 0, 3, 1, 1, 2, 0],\n",
       " [0, 0, 3, 1, 2, 0, 0],\n",
       " [0, 0, 3, 1, 2, 1, 0],\n",
       " [0, 0, 3, 1, 2, 2, 0],\n",
       " [0, 0, 3, 2, 0, 0, 0],\n",
       " [0, 0, 3, 2, 0, 1, 0],\n",
       " [0, 0, 3, 2, 0, 2, 0],\n",
       " [0, 0, 3, 2, 1, 0, 0],\n",
       " [0, 0, 3, 2, 1, 1, 0],\n",
       " [0, 0, 3, 2, 1, 2, 0],\n",
       " [0, 0, 3, 2, 2, 0, 0],\n",
       " [0, 0, 3, 2, 2, 1, 0],\n",
       " [0, 0, 3, 2, 2, 2, 0],\n",
       " [0, 1, 0, 0, 0, 0, 0],\n",
       " [0, 1, 0, 0, 0, 1, 0],\n",
       " [0, 1, 0, 0, 0, 2, 0],\n",
       " [0, 1, 0, 0, 1, 0, 0],\n",
       " [0, 1, 0, 0, 1, 1, 0],\n",
       " [0, 1, 0, 0, 1, 2, 0],\n",
       " [0, 1, 0, 0, 2, 0, 0],\n",
       " [0, 1, 0, 0, 2, 1, 0],\n",
       " [0, 1, 0, 0, 2, 2, 0],\n",
       " [0, 1, 0, 1, 0, 0, 0],\n",
       " [0, 1, 0, 1, 0, 1, 0],\n",
       " [0, 1, 0, 1, 0, 2, 0],\n",
       " [0, 1, 0, 1, 1, 0, 0],\n",
       " [0, 1, 0, 1, 1, 1, 0],\n",
       " [0, 1, 0, 1, 1, 2, 0],\n",
       " [0, 1, 0, 1, 2, 0, 0],\n",
       " [0, 1, 0, 1, 2, 1, 0],\n",
       " [0, 1, 0, 1, 2, 2, 0],\n",
       " [0, 1, 0, 2, 0, 0, 0],\n",
       " [0, 1, 0, 2, 0, 1, 0],\n",
       " [0, 1, 0, 2, 0, 2, 0],\n",
       " [0, 1, 0, 2, 1, 0, 0],\n",
       " [0, 1, 0, 2, 1, 1, 0],\n",
       " [0, 1, 0, 2, 1, 2, 0],\n",
       " [0, 1, 0, 2, 2, 0, 0],\n",
       " [0, 1, 0, 2, 2, 1, 0],\n",
       " [0, 1, 0, 2, 2, 2, 0],\n",
       " [0, 1, 1, 0, 0, 0, 0],\n",
       " [0, 1, 1, 0, 0, 1, 0],\n",
       " [0, 1, 1, 0, 0, 2, 0],\n",
       " [0, 1, 1, 0, 1, 0, 0],\n",
       " [0, 1, 1, 0, 1, 1, 0],\n",
       " [0, 1, 1, 0, 1, 2, 0],\n",
       " [0, 1, 1, 0, 2, 0, 0],\n",
       " [0, 1, 1, 0, 2, 1, 0],\n",
       " [0, 1, 1, 0, 2, 2, 0],\n",
       " [0, 1, 1, 1, 0, 0, 0],\n",
       " [0, 1, 1, 1, 0, 1, 0],\n",
       " [0, 1, 1, 1, 0, 2, 0],\n",
       " [0, 1, 1, 1, 1, 0, 0],\n",
       " [0, 1, 1, 1, 1, 1, 0],\n",
       " [0, 1, 1, 1, 1, 2, 0],\n",
       " [0, 1, 1, 1, 2, 0, 0],\n",
       " [0, 1, 1, 1, 2, 1, 0],\n",
       " [0, 1, 1, 1, 2, 2, 0],\n",
       " [0, 1, 1, 2, 0, 0, 0],\n",
       " [0, 1, 1, 2, 0, 1, 0],\n",
       " [0, 1, 1, 2, 0, 2, 0],\n",
       " [0, 1, 1, 2, 1, 0, 0],\n",
       " [0, 1, 1, 2, 1, 1, 0],\n",
       " [0, 1, 1, 2, 1, 2, 0],\n",
       " [0, 1, 1, 2, 2, 0, 0],\n",
       " [0, 1, 1, 2, 2, 1, 0],\n",
       " [0, 1, 1, 2, 2, 2, 0],\n",
       " [0, 1, 2, 0, 0, 0, 0],\n",
       " [0, 1, 2, 0, 0, 1, 0],\n",
       " [0, 1, 2, 0, 0, 2, 0],\n",
       " [0, 1, 2, 0, 1, 0, 0],\n",
       " [0, 1, 2, 0, 1, 1, 0],\n",
       " [0, 1, 2, 0, 1, 2, 0],\n",
       " [0, 1, 2, 0, 2, 0, 0],\n",
       " [0, 1, 2, 0, 2, 1, 0],\n",
       " [0, 1, 2, 0, 2, 2, 0],\n",
       " [0, 1, 2, 1, 0, 0, 0],\n",
       " [0, 1, 2, 1, 0, 1, 0],\n",
       " [0, 1, 2, 1, 0, 2, 0],\n",
       " [0, 1, 2, 1, 1, 0, 0],\n",
       " [0, 1, 2, 1, 1, 1, 0],\n",
       " [0, 1, 2, 1, 1, 2, 0],\n",
       " [0, 1, 2, 1, 2, 0, 0],\n",
       " [0, 1, 2, 1, 2, 1, 0],\n",
       " [0, 1, 2, 1, 2, 2, 0],\n",
       " [0, 1, 2, 2, 0, 0, 0],\n",
       " [0, 1, 2, 2, 0, 1, 0],\n",
       " [0, 1, 2, 2, 0, 2, 0],\n",
       " [0, 1, 2, 2, 1, 0, 0],\n",
       " [0, 1, 2, 2, 1, 1, 0],\n",
       " [0, 1, 2, 2, 1, 2, 0],\n",
       " [0, 1, 2, 2, 2, 0, 0],\n",
       " [0, 1, 2, 2, 2, 1, 0],\n",
       " [0, 1, 2, 2, 2, 2, 0],\n",
       " [0, 1, 3, 0, 0, 0, 0],\n",
       " [0, 1, 3, 0, 0, 1, 0],\n",
       " [0, 1, 3, 0, 0, 2, 0],\n",
       " [0, 1, 3, 0, 1, 0, 0],\n",
       " [0, 1, 3, 0, 1, 1, 0],\n",
       " [0, 1, 3, 0, 1, 2, 0],\n",
       " [0, 1, 3, 0, 2, 0, 0],\n",
       " [0, 1, 3, 0, 2, 1, 0],\n",
       " [0, 1, 3, 0, 2, 2, 0],\n",
       " [0, 1, 3, 1, 0, 0, 0],\n",
       " [0, 1, 3, 1, 0, 1, 0],\n",
       " [0, 1, 3, 1, 0, 2, 0],\n",
       " [0, 1, 3, 1, 1, 0, 0],\n",
       " [0, 1, 3, 1, 1, 1, 0],\n",
       " [0, 1, 3, 1, 1, 2, 0],\n",
       " [0, 1, 3, 1, 2, 0, 0],\n",
       " [0, 1, 3, 1, 2, 1, 0],\n",
       " [0, 1, 3, 1, 2, 2, 0],\n",
       " [0, 1, 3, 2, 0, 0, 0],\n",
       " [0, 1, 3, 2, 0, 1, 0],\n",
       " [0, 1, 3, 2, 0, 2, 0],\n",
       " [0, 1, 3, 2, 1, 0, 0],\n",
       " [0, 1, 3, 2, 1, 1, 0],\n",
       " [0, 1, 3, 2, 1, 2, 0],\n",
       " [0, 1, 3, 2, 2, 0, 0],\n",
       " [0, 1, 3, 2, 2, 1, 0],\n",
       " [0, 1, 3, 2, 2, 2, 0],\n",
       " [0, 2, 0, 0, 0, 0, 0],\n",
       " [0, 2, 0, 0, 0, 1, 0],\n",
       " [0, 2, 0, 0, 0, 2, 0],\n",
       " [0, 2, 0, 0, 1, 0, 0],\n",
       " [0, 2, 0, 0, 1, 1, 0],\n",
       " [0, 2, 0, 0, 1, 2, 0],\n",
       " [0, 2, 0, 0, 2, 0, 0],\n",
       " [0, 2, 0, 0, 2, 1, 0],\n",
       " [0, 2, 0, 0, 2, 2, 0],\n",
       " [0, 2, 0, 1, 0, 0, 0],\n",
       " [0, 2, 0, 1, 0, 1, 0],\n",
       " [0, 2, 0, 1, 0, 2, 1],\n",
       " [0, 2, 0, 1, 1, 0, 0],\n",
       " [0, 2, 0, 1, 1, 1, 0],\n",
       " [0, 2, 0, 1, 1, 2, 1],\n",
       " [0, 2, 0, 1, 2, 0, 0],\n",
       " [0, 2, 0, 1, 2, 1, 1],\n",
       " [0, 2, 0, 1, 2, 2, 1],\n",
       " [0, 2, 0, 2, 0, 0, 0],\n",
       " [0, 2, 0, 2, 0, 1, 0],\n",
       " [0, 2, 0, 2, 0, 2, 0],\n",
       " [0, 2, 0, 2, 1, 0, 0],\n",
       " [0, 2, 0, 2, 1, 1, 0],\n",
       " [0, 2, 0, 2, 1, 2, 1],\n",
       " [0, 2, 0, 2, 2, 0, 0],\n",
       " [0, 2, 0, 2, 2, 1, 1],\n",
       " [0, 2, 0, 2, 2, 2, 1],\n",
       " [0, 2, 1, 0, 0, 0, 0],\n",
       " [0, 2, 1, 0, 0, 1, 0],\n",
       " [0, 2, 1, 0, 0, 2, 0],\n",
       " [0, 2, 1, 0, 1, 0, 0],\n",
       " [0, 2, 1, 0, 1, 1, 0],\n",
       " [0, 2, 1, 0, 1, 2, 0],\n",
       " [0, 2, 1, 0, 2, 0, 0],\n",
       " [0, 2, 1, 0, 2, 1, 0],\n",
       " [0, 2, 1, 0, 2, 2, 0],\n",
       " [0, 2, 1, 1, 0, 0, 0],\n",
       " [0, 2, 1, 1, 0, 1, 0],\n",
       " [0, 2, 1, 1, 0, 2, 1],\n",
       " [0, 2, 1, 1, 1, 0, 0],\n",
       " [0, 2, 1, 1, 1, 1, 0],\n",
       " [0, 2, 1, 1, 1, 2, 1],\n",
       " [0, 2, 1, 1, 2, 0, 0],\n",
       " [0, 2, 1, 1, 2, 1, 1],\n",
       " [0, 2, 1, 1, 2, 2, 1],\n",
       " [0, 2, 1, 2, 0, 0, 0],\n",
       " [0, 2, 1, 2, 0, 1, 0],\n",
       " [0, 2, 1, 2, 0, 2, 1],\n",
       " [0, 2, 1, 2, 1, 0, 0],\n",
       " [0, 2, 1, 2, 1, 1, 1],\n",
       " [0, 2, 1, 2, 1, 2, 1],\n",
       " [0, 2, 1, 2, 2, 0, 0],\n",
       " [0, 2, 1, 2, 2, 1, 1],\n",
       " [0, 2, 1, 2, 2, 2, 1],\n",
       " [0, 2, 2, 0, 0, 0, 0],\n",
       " [0, 2, 2, 0, 0, 1, 0],\n",
       " [0, 2, 2, 0, 0, 2, 0],\n",
       " [0, 2, 2, 0, 1, 0, 0],\n",
       " [0, 2, 2, 0, 1, 1, 0],\n",
       " [0, 2, 2, 0, 1, 2, 0],\n",
       " [0, 2, 2, 0, 2, 0, 0],\n",
       " [0, 2, 2, 0, 2, 1, 0],\n",
       " [0, 2, 2, 0, 2, 2, 0],\n",
       " [0, 2, 2, 1, 0, 0, 0],\n",
       " [0, 2, 2, 1, 0, 1, 0],\n",
       " [0, 2, 2, 1, 0, 2, 1],\n",
       " [0, 2, 2, 1, 1, 0, 0],\n",
       " [0, 2, 2, 1, 1, 1, 1],\n",
       " [0, 2, 2, 1, 1, 2, 1],\n",
       " [0, 2, 2, 1, 2, 0, 0],\n",
       " [0, 2, 2, 1, 2, 1, 1],\n",
       " [0, 2, 2, 1, 2, 2, 1],\n",
       " [0, 2, 2, 2, 0, 0, 0],\n",
       " [0, 2, 2, 2, 0, 1, 0],\n",
       " [0, 2, 2, 2, 0, 2, 1],\n",
       " [0, 2, 2, 2, 1, 0, 0],\n",
       " [0, 2, 2, 2, 1, 1, 1],\n",
       " [0, 2, 2, 2, 1, 2, 1],\n",
       " [0, 2, 2, 2, 2, 0, 0],\n",
       " [0, 2, 2, 2, 2, 1, 1],\n",
       " [0, 2, 2, 2, 2, 2, 1],\n",
       " [0, 2, 3, 0, 0, 0, 0],\n",
       " [0, 2, 3, 0, 0, 1, 0],\n",
       " [0, 2, 3, 0, 0, 2, 0],\n",
       " [0, 2, 3, 0, 1, 0, 0],\n",
       " [0, 2, 3, 0, 1, 1, 0],\n",
       " [0, 2, 3, 0, 1, 2, 0],\n",
       " [0, 2, 3, 0, 2, 0, 0],\n",
       " [0, 2, 3, 0, 2, 1, 0],\n",
       " [0, 2, 3, 0, 2, 2, 0],\n",
       " [0, 2, 3, 1, 0, 0, 0],\n",
       " [0, 2, 3, 1, 0, 1, 0],\n",
       " [0, 2, 3, 1, 0, 2, 1],\n",
       " [0, 2, 3, 1, 1, 0, 0],\n",
       " [0, 2, 3, 1, 1, 1, 1],\n",
       " [0, 2, 3, 1, 1, 2, 1],\n",
       " [0, 2, 3, 1, 2, 0, 0],\n",
       " [0, 2, 3, 1, 2, 1, 1],\n",
       " [0, 2, 3, 1, 2, 2, 1],\n",
       " [0, 2, 3, 2, 0, 0, 0],\n",
       " [0, 2, 3, 2, 0, 1, 0],\n",
       " [0, 2, 3, 2, 0, 2, 1],\n",
       " [0, 2, 3, 2, 1, 0, 0],\n",
       " [0, 2, 3, 2, 1, 1, 1],\n",
       " [0, 2, 3, 2, 1, 2, 1],\n",
       " [0, 2, 3, 2, 2, 0, 0],\n",
       " [0, 2, 3, 2, 2, 1, 1],\n",
       " [0, 2, 3, 2, 2, 2, 1],\n",
       " [0, 3, 0, 0, 0, 0, 0],\n",
       " [0, 3, 0, 0, 0, 1, 0],\n",
       " [0, 3, 0, 0, 0, 2, 0],\n",
       " [0, 3, 0, 0, 1, 0, 0],\n",
       " [0, 3, 0, 0, 1, 1, 0],\n",
       " [0, 3, 0, 0, 1, 2, 0],\n",
       " [0, 3, 0, 0, 2, 0, 0],\n",
       " [0, 3, 0, 0, 2, 1, 0],\n",
       " [0, 3, 0, 0, 2, 2, 0],\n",
       " [0, 3, 0, 1, 0, 0, 0],\n",
       " [0, 3, 0, 1, 0, 1, 0],\n",
       " [0, 3, 0, 1, 0, 2, 1],\n",
       " [0, 3, 0, 1, 1, 0, 0],\n",
       " [0, 3, 0, 1, 1, 1, 0],\n",
       " [0, 3, 0, 1, 1, 2, 1],\n",
       " [0, 3, 0, 1, 2, 0, 0],\n",
       " [0, 3, 0, 1, 2, 1, 1],\n",
       " [0, 3, 0, 1, 2, 2, 1],\n",
       " [0, 3, 0, 2, 0, 0, 0],\n",
       " [0, 3, 0, 2, 0, 1, 0],\n",
       " [0, 3, 0, 2, 0, 2, 0],\n",
       " [0, 3, 0, 2, 1, 0, 0],\n",
       " [0, 3, 0, 2, 1, 1, 0],\n",
       " [0, 3, 0, 2, 1, 2, 1],\n",
       " [0, 3, 0, 2, 2, 0, 0],\n",
       " [0, 3, 0, 2, 2, 1, 1],\n",
       " [0, 3, 0, 2, 2, 2, 1],\n",
       " [0, 3, 1, 0, 0, 0, 0],\n",
       " [0, 3, 1, 0, 0, 1, 0],\n",
       " [0, 3, 1, 0, 0, 2, 0],\n",
       " [0, 3, 1, 0, 1, 0, 0],\n",
       " [0, 3, 1, 0, 1, 1, 0],\n",
       " [0, 3, 1, 0, 1, 2, 0],\n",
       " [0, 3, 1, 0, 2, 0, 0],\n",
       " [0, 3, 1, 0, 2, 1, 0],\n",
       " [0, 3, 1, 0, 2, 2, 0],\n",
       " [0, 3, 1, 1, 0, 0, 0],\n",
       " [0, 3, 1, 1, 0, 1, 0],\n",
       " [0, 3, 1, 1, 0, 2, 1],\n",
       " [0, 3, 1, 1, 1, 0, 0],\n",
       " [0, 3, 1, 1, 1, 1, 0],\n",
       " [0, 3, 1, 1, 1, 2, 1],\n",
       " [0, 3, 1, 1, 2, 0, 0],\n",
       " [0, 3, 1, 1, 2, 1, 1],\n",
       " [0, 3, 1, 1, 2, 2, 1],\n",
       " [0, 3, 1, 2, 0, 0, 0],\n",
       " [0, 3, 1, 2, 0, 1, 0],\n",
       " [0, 3, 1, 2, 0, 2, 1],\n",
       " [0, 3, 1, 2, 1, 0, 0],\n",
       " [0, 3, 1, 2, 1, 1, 1],\n",
       " [0, 3, 1, 2, 1, 2, 1],\n",
       " [0, 3, 1, 2, 2, 0, 0],\n",
       " [0, 3, 1, 2, 2, 1, 1],\n",
       " [0, 3, 1, 2, 2, 2, 1],\n",
       " [0, 3, 2, 0, 0, 0, 0],\n",
       " [0, 3, 2, 0, 0, 1, 0],\n",
       " [0, 3, 2, 0, 0, 2, 0],\n",
       " [0, 3, 2, 0, 1, 0, 0],\n",
       " [0, 3, 2, 0, 1, 1, 0],\n",
       " [0, 3, 2, 0, 1, 2, 0],\n",
       " [0, 3, 2, 0, 2, 0, 0],\n",
       " [0, 3, 2, 0, 2, 1, 0],\n",
       " [0, 3, 2, 0, 2, 2, 0],\n",
       " [0, 3, 2, 1, 0, 0, 0],\n",
       " [0, 3, 2, 1, 0, 1, 0],\n",
       " [0, 3, 2, 1, 0, 2, 1],\n",
       " [0, 3, 2, 1, 1, 0, 0],\n",
       " [0, 3, 2, 1, 1, 1, 1],\n",
       " [0, 3, 2, 1, 1, 2, 1],\n",
       " [0, 3, 2, 1, 2, 0, 0],\n",
       " [0, 3, 2, 1, 2, 1, 1],\n",
       " [0, 3, 2, 1, 2, 2, 1],\n",
       " [0, 3, 2, 2, 0, 0, 0],\n",
       " [0, 3, 2, 2, 0, 1, 0],\n",
       " [0, 3, 2, 2, 0, 2, 1],\n",
       " [0, 3, 2, 2, 1, 0, 0],\n",
       " [0, 3, 2, 2, 1, 1, 1],\n",
       " [0, 3, 2, 2, 1, 2, 1],\n",
       " [0, 3, 2, 2, 2, 0, 0],\n",
       " [0, 3, 2, 2, 2, 1, 1],\n",
       " [0, 3, 2, 2, 2, 2, 1],\n",
       " [0, 3, 3, 0, 0, 0, 0],\n",
       " [0, 3, 3, 0, 0, 1, 0],\n",
       " [0, 3, 3, 0, 0, 2, 0],\n",
       " [0, 3, 3, 0, 1, 0, 0],\n",
       " [0, 3, 3, 0, 1, 1, 0],\n",
       " [0, 3, 3, 0, 1, 2, 0],\n",
       " [0, 3, 3, 0, 2, 0, 0],\n",
       " [0, 3, 3, 0, 2, 1, 0],\n",
       " [0, 3, 3, 0, 2, 2, 0],\n",
       " [0, 3, 3, 1, 0, 0, 0],\n",
       " [0, 3, 3, 1, 0, 1, 0],\n",
       " [0, 3, 3, 1, 0, 2, 1],\n",
       " [0, 3, 3, 1, 1, 0, 0],\n",
       " [0, 3, 3, 1, 1, 1, 1],\n",
       " [0, 3, 3, 1, 1, 2, 1],\n",
       " [0, 3, 3, 1, 2, 0, 0],\n",
       " [0, 3, 3, 1, 2, 1, 1],\n",
       " [0, 3, 3, 1, 2, 2, 1],\n",
       " [0, 3, 3, 2, 0, 0, 0],\n",
       " [0, 3, 3, 2, 0, 1, 0],\n",
       " [0, 3, 3, 2, 0, 2, 1],\n",
       " [0, 3, 3, 2, 1, 0, 0],\n",
       " [0, 3, 3, 2, 1, 1, 1],\n",
       " [0, 3, 3, 2, 1, 2, 1],\n",
       " [0, 3, 3, 2, 2, 0, 0],\n",
       " [0, 3, 3, 2, 2, 1, 1],\n",
       " [0, 3, 3, 2, 2, 2, 1],\n",
       " [1, 0, 0, 0, 0, 0, 0],\n",
       " [1, 0, 0, 0, 0, 1, 0],\n",
       " [1, 0, 0, 0, 0, 2, 0],\n",
       " [1, 0, 0, 0, 1, 0, 0],\n",
       " [1, 0, 0, 0, 1, 1, 0],\n",
       " [1, 0, 0, 0, 1, 2, 0],\n",
       " [1, 0, 0, 0, 2, 0, 0],\n",
       " [1, 0, 0, 0, 2, 1, 0],\n",
       " [1, 0, 0, 0, 2, 2, 0],\n",
       " [1, 0, 0, 1, 0, 0, 0],\n",
       " [1, 0, 0, 1, 0, 1, 0],\n",
       " [1, 0, 0, 1, 0, 2, 0],\n",
       " [1, 0, 0, 1, 1, 0, 0],\n",
       " [1, 0, 0, 1, 1, 1, 0],\n",
       " [1, 0, 0, 1, 1, 2, 0],\n",
       " [1, 0, 0, 1, 2, 0, 0],\n",
       " [1, 0, 0, 1, 2, 1, 0],\n",
       " [1, 0, 0, 1, 2, 2, 0],\n",
       " [1, 0, 0, 2, 0, 0, 0],\n",
       " [1, 0, 0, 2, 0, 1, 0],\n",
       " [1, 0, 0, 2, 0, 2, 0],\n",
       " [1, 0, 0, 2, 1, 0, 0],\n",
       " [1, 0, 0, 2, 1, 1, 0],\n",
       " [1, 0, 0, 2, 1, 2, 0],\n",
       " [1, 0, 0, 2, 2, 0, 0],\n",
       " [1, 0, 0, 2, 2, 1, 0],\n",
       " [1, 0, 0, 2, 2, 2, 0],\n",
       " [1, 0, 1, 0, 0, 0, 0],\n",
       " [1, 0, 1, 0, 0, 1, 0],\n",
       " [1, 0, 1, 0, 0, 2, 0],\n",
       " [1, 0, 1, 0, 1, 0, 0],\n",
       " [1, 0, 1, 0, 1, 1, 0],\n",
       " [1, 0, 1, 0, 1, 2, 0],\n",
       " [1, 0, 1, 0, 2, 0, 0],\n",
       " [1, 0, 1, 0, 2, 1, 0],\n",
       " [1, 0, 1, 0, 2, 2, 0],\n",
       " [1, 0, 1, 1, 0, 0, 0],\n",
       " [1, 0, 1, 1, 0, 1, 0],\n",
       " [1, 0, 1, 1, 0, 2, 0],\n",
       " [1, 0, 1, 1, 1, 0, 0],\n",
       " [1, 0, 1, 1, 1, 1, 0],\n",
       " [1, 0, 1, 1, 1, 2, 0],\n",
       " [1, 0, 1, 1, 2, 0, 0],\n",
       " [1, 0, 1, 1, 2, 1, 0],\n",
       " [1, 0, 1, 1, 2, 2, 0],\n",
       " [1, 0, 1, 2, 0, 0, 0],\n",
       " [1, 0, 1, 2, 0, 1, 0],\n",
       " [1, 0, 1, 2, 0, 2, 0],\n",
       " [1, 0, 1, 2, 1, 0, 0],\n",
       " [1, 0, 1, 2, 1, 1, 0],\n",
       " [1, 0, 1, 2, 1, 2, 0],\n",
       " [1, 0, 1, 2, 2, 0, 0],\n",
       " [1, 0, 1, 2, 2, 1, 0],\n",
       " [1, 0, 1, 2, 2, 2, 0],\n",
       " [1, 0, 2, 0, 0, 0, 0],\n",
       " [1, 0, 2, 0, 0, 1, 0],\n",
       " [1, 0, 2, 0, 0, 2, 0],\n",
       " [1, 0, 2, 0, 1, 0, 0],\n",
       " [1, 0, 2, 0, 1, 1, 0],\n",
       " [1, 0, 2, 0, 1, 2, 0],\n",
       " [1, 0, 2, 0, 2, 0, 0],\n",
       " [1, 0, 2, 0, 2, 1, 0],\n",
       " [1, 0, 2, 0, 2, 2, 0],\n",
       " [1, 0, 2, 1, 0, 0, 0],\n",
       " [1, 0, 2, 1, 0, 1, 0],\n",
       " [1, 0, 2, 1, 0, 2, 0],\n",
       " [1, 0, 2, 1, 1, 0, 0],\n",
       " [1, 0, 2, 1, 1, 1, 0],\n",
       " [1, 0, 2, 1, 1, 2, 0],\n",
       " [1, 0, 2, 1, 2, 0, 0],\n",
       " [1, 0, 2, 1, 2, 1, 0],\n",
       " [1, 0, 2, 1, 2, 2, 0],\n",
       " [1, 0, 2, 2, 0, 0, 0],\n",
       " [1, 0, 2, 2, 0, 1, 0],\n",
       " [1, 0, 2, 2, 0, 2, 0],\n",
       " [1, 0, 2, 2, 1, 0, 0],\n",
       " [1, 0, 2, 2, 1, 1, 0],\n",
       " [1, 0, 2, 2, 1, 2, 0],\n",
       " [1, 0, 2, 2, 2, 0, 0],\n",
       " [1, 0, 2, 2, 2, 1, 0],\n",
       " [1, 0, 2, 2, 2, 2, 0],\n",
       " [1, 0, 3, 0, 0, 0, 0],\n",
       " [1, 0, 3, 0, 0, 1, 0],\n",
       " [1, 0, 3, 0, 0, 2, 0],\n",
       " [1, 0, 3, 0, 1, 0, 0],\n",
       " [1, 0, 3, 0, 1, 1, 0],\n",
       " [1, 0, 3, 0, 1, 2, 0],\n",
       " [1, 0, 3, 0, 2, 0, 0],\n",
       " [1, 0, 3, 0, 2, 1, 0],\n",
       " [1, 0, 3, 0, 2, 2, 0],\n",
       " [1, 0, 3, 1, 0, 0, 0],\n",
       " [1, 0, 3, 1, 0, 1, 0],\n",
       " [1, 0, 3, 1, 0, 2, 0],\n",
       " [1, 0, 3, 1, 1, 0, 0],\n",
       " [1, 0, 3, 1, 1, 1, 0],\n",
       " [1, 0, 3, 1, 1, 2, 0],\n",
       " [1, 0, 3, 1, 2, 0, 0],\n",
       " [1, 0, 3, 1, 2, 1, 0],\n",
       " [1, 0, 3, 1, 2, 2, 0],\n",
       " [1, 0, 3, 2, 0, 0, 0],\n",
       " [1, 0, 3, 2, 0, 1, 0],\n",
       " [1, 0, 3, 2, 0, 2, 0],\n",
       " [1, 0, 3, 2, 1, 0, 0],\n",
       " [1, 0, 3, 2, 1, 1, 0],\n",
       " [1, 0, 3, 2, 1, 2, 0],\n",
       " [1, 0, 3, 2, 2, 0, 0],\n",
       " [1, 0, 3, 2, 2, 1, 0],\n",
       " [1, 0, 3, 2, 2, 2, 0],\n",
       " [1, 1, 0, 0, 0, 0, 0],\n",
       " [1, 1, 0, 0, 0, 1, 0],\n",
       " [1, 1, 0, 0, 0, 2, 0],\n",
       " [1, 1, 0, 0, 1, 0, 0],\n",
       " [1, 1, 0, 0, 1, 1, 0],\n",
       " [1, 1, 0, 0, 1, 2, 0],\n",
       " [1, 1, 0, 0, 2, 0, 0],\n",
       " [1, 1, 0, 0, 2, 1, 0],\n",
       " [1, 1, 0, 0, 2, 2, 0],\n",
       " [1, 1, 0, 1, 0, 0, 0],\n",
       " [1, 1, 0, 1, 0, 1, 0],\n",
       " [1, 1, 0, 1, 0, 2, 1],\n",
       " [1, 1, 0, 1, 1, 0, 0],\n",
       " [1, 1, 0, 1, 1, 1, 0],\n",
       " [1, 1, 0, 1, 1, 2, 1],\n",
       " [1, 1, 0, 1, 2, 0, 0],\n",
       " [1, 1, 0, 1, 2, 1, 1],\n",
       " [1, 1, 0, 1, 2, 2, 1],\n",
       " [1, 1, 0, 2, 0, 0, 0],\n",
       " [1, 1, 0, 2, 0, 1, 0],\n",
       " [1, 1, 0, 2, 0, 2, 0],\n",
       " [1, 1, 0, 2, 1, 0, 0],\n",
       " [1, 1, 0, 2, 1, 1, 0],\n",
       " [1, 1, 0, 2, 1, 2, 1],\n",
       " [1, 1, 0, 2, 2, 0, 0],\n",
       " [1, 1, 0, 2, 2, 1, 1],\n",
       " [1, 1, 0, 2, 2, 2, 1],\n",
       " [1, 1, 1, 0, 0, 0, 0],\n",
       " [1, 1, 1, 0, 0, 1, 0],\n",
       " [1, 1, 1, 0, 0, 2, 0],\n",
       " [1, 1, 1, 0, 1, 0, 0],\n",
       " [1, 1, 1, 0, 1, 1, 0],\n",
       " [1, 1, 1, 0, 1, 2, 0],\n",
       " [1, 1, 1, 0, 2, 0, 0],\n",
       " [1, 1, 1, 0, 2, 1, 0],\n",
       " [1, 1, 1, 0, 2, 2, 0],\n",
       " [1, 1, 1, 1, 0, 0, 0],\n",
       " [1, 1, 1, 1, 0, 1, 0],\n",
       " [1, 1, 1, 1, 0, 2, 1],\n",
       " [1, 1, 1, 1, 1, 0, 0],\n",
       " [1, 1, 1, 1, 1, 1, 0],\n",
       " [1, 1, 1, 1, 1, 2, 1],\n",
       " [1, 1, 1, 1, 2, 0, 0],\n",
       " [1, 1, 1, 1, 2, 1, 1],\n",
       " [1, 1, 1, 1, 2, 2, 1],\n",
       " [1, 1, 1, 2, 0, 0, 0],\n",
       " [1, 1, 1, 2, 0, 1, 0],\n",
       " [1, 1, 1, 2, 0, 2, 1],\n",
       " [1, 1, 1, 2, 1, 0, 0],\n",
       " [1, 1, 1, 2, 1, 1, 1],\n",
       " [1, 1, 1, 2, 1, 2, 1],\n",
       " [1, 1, 1, 2, 2, 0, 0],\n",
       " [1, 1, 1, 2, 2, 1, 1],\n",
       " [1, 1, 1, 2, 2, 2, 1],\n",
       " [1, 1, 2, 0, 0, 0, 0],\n",
       " [1, 1, 2, 0, 0, 1, 0],\n",
       " [1, 1, 2, 0, 0, 2, 0],\n",
       " [1, 1, 2, 0, 1, 0, 0],\n",
       " [1, 1, 2, 0, 1, 1, 0],\n",
       " [1, 1, 2, 0, 1, 2, 0],\n",
       " [1, 1, 2, 0, 2, 0, 0],\n",
       " [1, 1, 2, 0, 2, 1, 0],\n",
       " [1, 1, 2, 0, 2, 2, 0],\n",
       " [1, 1, 2, 1, 0, 0, 0],\n",
       " [1, 1, 2, 1, 0, 1, 0],\n",
       " [1, 1, 2, 1, 0, 2, 1],\n",
       " [1, 1, 2, 1, 1, 0, 0],\n",
       " [1, 1, 2, 1, 1, 1, 1],\n",
       " [1, 1, 2, 1, 1, 2, 1],\n",
       " [1, 1, 2, 1, 2, 0, 0],\n",
       " [1, 1, 2, 1, 2, 1, 1],\n",
       " [1, 1, 2, 1, 2, 2, 1],\n",
       " [1, 1, 2, 2, 0, 0, 0],\n",
       " [1, 1, 2, 2, 0, 1, 0],\n",
       " [1, 1, 2, 2, 0, 2, 1],\n",
       " [1, 1, 2, 2, 1, 0, 0],\n",
       " [1, 1, 2, 2, 1, 1, 1],\n",
       " [1, 1, 2, 2, 1, 2, 1],\n",
       " [1, 1, 2, 2, 2, 0, 0],\n",
       " [1, 1, 2, 2, 2, 1, 1],\n",
       " [1, 1, 2, 2, 2, 2, 1],\n",
       " [1, 1, 3, 0, 0, 0, 0],\n",
       " [1, 1, 3, 0, 0, 1, 0],\n",
       " [1, 1, 3, 0, 0, 2, 0],\n",
       " [1, 1, 3, 0, 1, 0, 0],\n",
       " [1, 1, 3, 0, 1, 1, 0],\n",
       " [1, 1, 3, 0, 1, 2, 0],\n",
       " [1, 1, 3, 0, 2, 0, 0],\n",
       " [1, 1, 3, 0, 2, 1, 0],\n",
       " [1, 1, 3, 0, 2, 2, 0],\n",
       " [1, 1, 3, 1, 0, 0, 0],\n",
       " [1, 1, 3, 1, 0, 1, 0],\n",
       " [1, 1, 3, 1, 0, 2, 1],\n",
       " [1, 1, 3, 1, 1, 0, 0],\n",
       " [1, 1, 3, 1, 1, 1, 1],\n",
       " [1, 1, 3, 1, 1, 2, 1],\n",
       " [1, 1, 3, 1, 2, 0, 0],\n",
       " [1, 1, 3, 1, 2, 1, 1],\n",
       " [1, 1, 3, 1, 2, 2, 1],\n",
       " [1, 1, 3, 2, 0, 0, 0],\n",
       " [1, 1, 3, 2, 0, 1, 0],\n",
       " [1, 1, 3, 2, 0, 2, 1],\n",
       " [1, 1, 3, 2, 1, 0, 0],\n",
       " [1, 1, 3, 2, 1, 1, 1],\n",
       " [1, 1, 3, 2, 1, 2, 1],\n",
       " [1, 1, 3, 2, 2, 0, 0],\n",
       " [1, 1, 3, 2, 2, 1, 1],\n",
       " [1, 1, 3, 2, 2, 2, 1],\n",
       " [1, 2, 0, 0, 0, 0, 0],\n",
       " [1, 2, 0, 0, 0, 1, 0],\n",
       " [1, 2, 0, 0, 0, 2, 0],\n",
       " [1, 2, 0, 0, 1, 0, 0],\n",
       " [1, 2, 0, 0, 1, 1, 0],\n",
       " [1, 2, 0, 0, 1, 2, 0],\n",
       " [1, 2, 0, 0, 2, 0, 0],\n",
       " [1, 2, 0, 0, 2, 1, 0],\n",
       " [1, 2, 0, 0, 2, 2, 0],\n",
       " [1, 2, 0, 1, 0, 0, 0],\n",
       " [1, 2, 0, 1, 0, 1, 0],\n",
       " [1, 2, 0, 1, 0, 2, 1],\n",
       " [1, 2, 0, 1, 1, 0, 0],\n",
       " [1, 2, 0, 1, 1, 1, 0],\n",
       " [1, 2, 0, 1, 1, 2, 1],\n",
       " [1, 2, 0, 1, 2, 0, 0],\n",
       " [1, 2, 0, 1, 2, 1, 1],\n",
       " [1, 2, 0, 1, 2, 2, 1],\n",
       " [1, 2, 0, 2, 0, 0, 0],\n",
       " [1, 2, 0, 2, 0, 1, 0],\n",
       " [1, 2, 0, 2, 0, 2, 0],\n",
       " [1, 2, 0, 2, 1, 0, 0],\n",
       " [1, 2, 0, 2, 1, 1, 0],\n",
       " [1, 2, 0, 2, 1, 2, 1],\n",
       " [1, 2, 0, 2, 2, 0, 0],\n",
       " [1, 2, 0, 2, 2, 1, 1],\n",
       " [1, 2, 0, 2, 2, 2, 1],\n",
       " [1, 2, 1, 0, 0, 0, 0],\n",
       " [1, 2, 1, 0, 0, 1, 0],\n",
       " [1, 2, 1, 0, 0, 2, 0],\n",
       " [1, 2, 1, 0, 1, 0, 0],\n",
       " [1, 2, 1, 0, 1, 1, 0],\n",
       " [1, 2, 1, 0, 1, 2, 0],\n",
       " [1, 2, 1, 0, 2, 0, 0],\n",
       " [1, 2, 1, 0, 2, 1, 0],\n",
       " [1, 2, 1, 0, 2, 2, 0],\n",
       " [1, 2, 1, 1, 0, 0, 0],\n",
       " [1, 2, 1, 1, 0, 1, 0],\n",
       " [1, 2, 1, 1, 0, 2, 1],\n",
       " [1, 2, 1, 1, 1, 0, 0],\n",
       " [1, 2, 1, 1, 1, 1, 0],\n",
       " [1, 2, 1, 1, 1, 2, 1],\n",
       " [1, 2, 1, 1, 2, 0, 0],\n",
       " [1, 2, 1, 1, 2, 1, 1],\n",
       " [1, 2, 1, 1, 2, 2, 1],\n",
       " [1, 2, 1, 2, 0, 0, 0],\n",
       " [1, 2, 1, 2, 0, 1, 0],\n",
       " [1, 2, 1, 2, 0, 2, 1],\n",
       " [1, 2, 1, 2, 1, 0, 0],\n",
       " [1, 2, 1, 2, 1, 1, 1],\n",
       " [1, 2, 1, 2, 1, 2, 1],\n",
       " [1, 2, 1, 2, 2, 0, 0],\n",
       " [1, 2, 1, 2, 2, 1, 1],\n",
       " [1, 2, 1, 2, 2, 2, 1],\n",
       " [1, 2, 2, 0, 0, 0, 0],\n",
       " [1, 2, 2, 0, 0, 1, 0],\n",
       " [1, 2, 2, 0, 0, 2, 0],\n",
       " [1, 2, 2, 0, 1, 0, 0],\n",
       " [1, 2, 2, 0, 1, 1, 0],\n",
       " [1, 2, 2, 0, 1, 2, 0],\n",
       " [1, 2, 2, 0, 2, 0, 0],\n",
       " [1, 2, 2, 0, 2, 1, 0],\n",
       " [1, 2, 2, 0, 2, 2, 0],\n",
       " [1, 2, 2, 1, 0, 0, 0],\n",
       " [1, 2, 2, 1, 0, 1, 0],\n",
       " [1, 2, 2, 1, 0, 2, 1],\n",
       " [1, 2, 2, 1, 1, 0, 0],\n",
       " [1, 2, 2, 1, 1, 1, 1],\n",
       " [1, 2, 2, 1, 1, 2, 1],\n",
       " [1, 2, 2, 1, 2, 0, 0],\n",
       " [1, 2, 2, 1, 2, 1, 1],\n",
       " [1, 2, 2, 1, 2, 2, 1],\n",
       " [1, 2, 2, 2, 0, 0, 0],\n",
       " [1, 2, 2, 2, 0, 1, 0],\n",
       " [1, 2, 2, 2, 0, 2, 1],\n",
       " [1, 2, 2, 2, 1, 0, 0],\n",
       " [1, 2, 2, 2, 1, 1, 1],\n",
       " [1, 2, 2, 2, 1, 2, 1],\n",
       " [1, 2, 2, 2, 2, 0, 0],\n",
       " [1, 2, 2, 2, 2, 1, 1],\n",
       " [1, 2, 2, 2, 2, 2, 1],\n",
       " [1, 2, 3, 0, 0, 0, 0],\n",
       " [1, 2, 3, 0, 0, 1, 0],\n",
       " [1, 2, 3, 0, 0, 2, 0],\n",
       " [1, 2, 3, 0, 1, 0, 0],\n",
       " [1, 2, 3, 0, 1, 1, 0],\n",
       " [1, 2, 3, 0, 1, 2, 0],\n",
       " [1, 2, 3, 0, 2, 0, 0],\n",
       " [1, 2, 3, 0, 2, 1, 0],\n",
       " [1, 2, 3, 0, 2, 2, 0],\n",
       " [1, 2, 3, 1, 0, 0, 0],\n",
       " [1, 2, 3, 1, 0, 1, 0],\n",
       " [1, 2, 3, 1, 0, 2, 1],\n",
       " [1, 2, 3, 1, 1, 0, 0],\n",
       " [1, 2, 3, 1, 1, 1, 1],\n",
       " [1, 2, 3, 1, 1, 2, 1],\n",
       " [1, 2, 3, 1, 2, 0, 0],\n",
       " [1, 2, 3, 1, 2, 1, 1],\n",
       " [1, 2, 3, 1, 2, 2, 1],\n",
       " [1, 2, 3, 2, 0, 0, 0],\n",
       " [1, 2, 3, 2, 0, 1, 0],\n",
       " [1, 2, 3, 2, 0, 2, 1],\n",
       " [1, 2, 3, 2, 1, 0, 0],\n",
       " [1, 2, 3, 2, 1, 1, 1],\n",
       " [1, 2, 3, 2, 1, 2, 1],\n",
       " [1, 2, 3, 2, 2, 0, 0],\n",
       " [1, 2, 3, 2, 2, 1, 1],\n",
       " [1, 2, 3, 2, 2, 2, 1],\n",
       " [1, 3, 0, 0, 0, 0, 0],\n",
       " [1, 3, 0, 0, 0, 1, 0],\n",
       " [1, 3, 0, 0, 0, 2, 0],\n",
       " [1, 3, 0, 0, 1, 0, 0],\n",
       " [1, 3, 0, 0, 1, 1, 0],\n",
       " [1, 3, 0, 0, 1, 2, 0],\n",
       " [1, 3, 0, 0, 2, 0, 0],\n",
       " [1, 3, 0, 0, 2, 1, 0],\n",
       " [1, 3, 0, 0, 2, 2, 0],\n",
       " [1, 3, 0, 1, 0, 0, 0],\n",
       " [1, 3, 0, 1, 0, 1, 0],\n",
       " [1, 3, 0, 1, 0, 2, 1],\n",
       " [1, 3, 0, 1, 1, 0, 0],\n",
       " [1, 3, 0, 1, 1, 1, 0],\n",
       " [1, 3, 0, 1, 1, 2, 1],\n",
       " [1, 3, 0, 1, 2, 0, 0],\n",
       " [1, 3, 0, 1, 2, 1, 1],\n",
       " [1, 3, 0, 1, 2, 2, 1],\n",
       " [1, 3, 0, 2, 0, 0, 0],\n",
       " [1, 3, 0, 2, 0, 1, 0],\n",
       " [1, 3, 0, 2, 0, 2, 0],\n",
       " [1, 3, 0, 2, 1, 0, 0],\n",
       " [1, 3, 0, 2, 1, 1, 0],\n",
       " [1, 3, 0, 2, 1, 2, 1],\n",
       " [1, 3, 0, 2, 2, 0, 0],\n",
       " [1, 3, 0, 2, 2, 1, 1],\n",
       " [1, 3, 0, 2, 2, 2, 1],\n",
       " [1, 3, 1, 0, 0, 0, 0],\n",
       " [1, 3, 1, 0, 0, 1, 0],\n",
       " [1, 3, 1, 0, 0, 2, 0],\n",
       " [1, 3, 1, 0, 1, 0, 0],\n",
       " [1, 3, 1, 0, 1, 1, 0],\n",
       " [1, 3, 1, 0, 1, 2, 0],\n",
       " [1, 3, 1, 0, 2, 0, 0],\n",
       " [1, 3, 1, 0, 2, 1, 0],\n",
       " [1, 3, 1, 0, 2, 2, 0],\n",
       " [1, 3, 1, 1, 0, 0, 0],\n",
       " [1, 3, 1, 1, 0, 1, 0],\n",
       " [1, 3, 1, 1, 0, 2, 1],\n",
       " [1, 3, 1, 1, 1, 0, 0],\n",
       " [1, 3, 1, 1, 1, 1, 0],\n",
       " [1, 3, 1, 1, 1, 2, 1],\n",
       " [1, 3, 1, 1, 2, 0, 0],\n",
       " [1, 3, 1, 1, 2, 1, 1],\n",
       " [1, 3, 1, 1, 2, 2, 1],\n",
       " [1, 3, 1, 2, 0, 0, 0],\n",
       " [1, 3, 1, 2, 0, 1, 0],\n",
       " [1, 3, 1, 2, 0, 2, 1],\n",
       " [1, 3, 1, 2, 1, 0, 0],\n",
       " [1, 3, 1, 2, 1, 1, 1],\n",
       " [1, 3, 1, 2, 1, 2, 1],\n",
       " [1, 3, 1, 2, 2, 0, 0],\n",
       " [1, 3, 1, 2, 2, 1, 1],\n",
       " [1, 3, 1, 2, 2, 2, 1],\n",
       " [1, 3, 2, 0, 0, 0, 0],\n",
       " [1, 3, 2, 0, 0, 1, 0],\n",
       " [1, 3, 2, 0, 0, 2, 0],\n",
       " [1, 3, 2, 0, 1, 0, 0],\n",
       " [1, 3, 2, 0, 1, 1, 0],\n",
       " [1, 3, 2, 0, 1, 2, 0],\n",
       " [1, 3, 2, 0, 2, 0, 0],\n",
       " [1, 3, 2, 0, 2, 1, 0],\n",
       " [1, 3, 2, 0, 2, 2, 0],\n",
       " [1, 3, 2, 1, 0, 0, 0],\n",
       " [1, 3, 2, 1, 0, 1, 0],\n",
       " [1, 3, 2, 1, 0, 2, 1],\n",
       " [1, 3, 2, 1, 1, 0, 0],\n",
       " [1, 3, 2, 1, 1, 1, 1],\n",
       " [1, 3, 2, 1, 1, 2, 1],\n",
       " [1, 3, 2, 1, 2, 0, 0],\n",
       " [1, 3, 2, 1, 2, 1, 1],\n",
       " [1, 3, 2, 1, 2, 2, 1],\n",
       " [1, 3, 2, 2, 0, 0, 0],\n",
       " [1, 3, 2, 2, 0, 1, 0],\n",
       " [1, 3, 2, 2, 0, 2, 1],\n",
       " [1, 3, 2, 2, 1, 0, 0],\n",
       " [1, 3, 2, 2, 1, 1, 1],\n",
       " [1, 3, 2, 2, 1, 2, 1],\n",
       " [1, 3, 2, 2, 2, 0, 0],\n",
       " [1, 3, 2, 2, 2, 1, 1],\n",
       " [1, 3, 2, 2, 2, 2, 1],\n",
       " [1, 3, 3, 0, 0, 0, 0],\n",
       " [1, 3, 3, 0, 0, 1, 0],\n",
       " [1, 3, 3, 0, 0, 2, 0],\n",
       " [1, 3, 3, 0, 1, 0, 0],\n",
       " [1, 3, 3, 0, 1, 1, 0],\n",
       " [1, 3, 3, 0, 1, 2, 0],\n",
       " [1, 3, 3, 0, 2, 0, 0],\n",
       " [1, 3, 3, 0, 2, 1, 0],\n",
       " [1, 3, 3, 0, 2, 2, 0],\n",
       " [1, 3, 3, 1, 0, 0, 0],\n",
       " [1, 3, 3, 1, 0, 1, 0],\n",
       " [1, 3, 3, 1, 0, 2, 1],\n",
       " [1, 3, 3, 1, 1, 0, 0],\n",
       " [1, 3, 3, 1, 1, 1, 1],\n",
       " [1, 3, 3, 1, 1, 2, 1],\n",
       " [1, 3, 3, 1, 2, 0, 0],\n",
       " [1, 3, 3, 1, 2, 1, 1],\n",
       " [1, 3, 3, 1, 2, 2, 1],\n",
       " [1, 3, 3, 2, 0, 0, 0],\n",
       " [1, 3, 3, 2, 0, 1, 0],\n",
       " [1, 3, 3, 2, 0, 2, 1],\n",
       " [1, 3, 3, 2, 1, 0, 0],\n",
       " [1, 3, 3, 2, 1, 1, 1],\n",
       " [1, 3, 3, 2, 1, 2, 1],\n",
       " [1, 3, 3, 2, 2, 0, 0],\n",
       " [1, 3, 3, 2, 2, 1, 1],\n",
       " [1, 3, 3, 2, 2, 2, 1],\n",
       " [2, 0, 0, 0, 0, 0, 0],\n",
       " [2, 0, 0, 0, 0, 1, 0],\n",
       " [2, 0, 0, 0, 0, 2, 0],\n",
       " [2, 0, 0, 0, 1, 0, 0],\n",
       " [2, 0, 0, 0, 1, 1, 0],\n",
       " [2, 0, 0, 0, 1, 2, 0],\n",
       " [2, 0, 0, 0, 2, 0, 0],\n",
       " [2, 0, 0, 0, 2, 1, 0],\n",
       " [2, 0, 0, 0, 2, 2, 0],\n",
       " [2, 0, 0, 1, 0, 0, 0],\n",
       " [2, 0, 0, 1, 0, 1, 0],\n",
       " [2, 0, 0, 1, 0, 2, 1],\n",
       " [2, 0, 0, 1, 1, 0, 0],\n",
       " [2, 0, 0, 1, 1, 1, 0],\n",
       " [2, 0, 0, 1, 1, 2, 1],\n",
       " [2, 0, 0, 1, 2, 0, 0],\n",
       " [2, 0, 0, 1, 2, 1, 1],\n",
       " [2, 0, 0, 1, 2, 2, 1],\n",
       " [2, 0, 0, 2, 0, 0, 0],\n",
       " [2, 0, 0, 2, 0, 1, 0],\n",
       " [2, 0, 0, 2, 0, 2, 0],\n",
       " [2, 0, 0, 2, 1, 0, 0],\n",
       " [2, 0, 0, 2, 1, 1, 0],\n",
       " [2, 0, 0, 2, 1, 2, 1],\n",
       " [2, 0, 0, 2, 2, 0, 0],\n",
       " [2, 0, 0, 2, 2, 1, 1],\n",
       " [2, 0, 0, 2, 2, 2, 1],\n",
       " [2, 0, 1, 0, 0, 0, 0],\n",
       " [2, 0, 1, 0, 0, 1, 0],\n",
       " [2, 0, 1, 0, 0, 2, 0],\n",
       " [2, 0, 1, 0, 1, 0, 0],\n",
       " [2, 0, 1, 0, 1, 1, 0],\n",
       " [2, 0, 1, 0, 1, 2, 0],\n",
       " [2, 0, 1, 0, 2, 0, 0],\n",
       " [2, 0, 1, 0, 2, 1, 0],\n",
       " [2, 0, 1, 0, 2, 2, 0],\n",
       " [2, 0, 1, 1, 0, 0, 0],\n",
       " [2, 0, 1, 1, 0, 1, 0],\n",
       " [2, 0, 1, 1, 0, 2, 1],\n",
       " [2, 0, 1, 1, 1, 0, 0],\n",
       " [2, 0, 1, 1, 1, 1, 0],\n",
       " [2, 0, 1, 1, 1, 2, 1],\n",
       " [2, 0, 1, 1, 2, 0, 0],\n",
       " [2, 0, 1, 1, 2, 1, 1],\n",
       " [2, 0, 1, 1, 2, 2, 1],\n",
       " [2, 0, 1, 2, 0, 0, 0],\n",
       " [2, 0, 1, 2, 0, 1, 0],\n",
       " [2, 0, 1, 2, 0, 2, 1],\n",
       " [2, 0, 1, 2, 1, 0, 0],\n",
       " [2, 0, 1, 2, 1, 1, 1],\n",
       " [2, 0, 1, 2, 1, 2, 1],\n",
       " [2, 0, 1, 2, 2, 0, 0],\n",
       " [2, 0, 1, 2, 2, 1, 1],\n",
       " [2, 0, 1, 2, 2, 2, 1],\n",
       " [2, 0, 2, 0, 0, 0, 0],\n",
       " [2, 0, 2, 0, 0, 1, 0],\n",
       " [2, 0, 2, 0, 0, 2, 0],\n",
       " [2, 0, 2, 0, 1, 0, 0],\n",
       " [2, 0, 2, 0, 1, 1, 0],\n",
       " [2, 0, 2, 0, 1, 2, 0],\n",
       " [2, 0, 2, 0, 2, 0, 0],\n",
       " [2, 0, 2, 0, 2, 1, 0],\n",
       " [2, 0, 2, 0, 2, 2, 0],\n",
       " [2, 0, 2, 1, 0, 0, 0],\n",
       " [2, 0, 2, 1, 0, 1, 0],\n",
       " [2, 0, 2, 1, 0, 2, 1],\n",
       " [2, 0, 2, 1, 1, 0, 0],\n",
       " [2, 0, 2, 1, 1, 1, 1],\n",
       " [2, 0, 2, 1, 1, 2, 1],\n",
       " [2, 0, 2, 1, 2, 0, 0],\n",
       " [2, 0, 2, 1, 2, 1, 1],\n",
       " [2, 0, 2, 1, 2, 2, 1],\n",
       " [2, 0, 2, 2, 0, 0, 0],\n",
       " [2, 0, 2, 2, 0, 1, 0],\n",
       " [2, 0, 2, 2, 0, 2, 1],\n",
       " [2, 0, 2, 2, 1, 0, 0],\n",
       " [2, 0, 2, 2, 1, 1, 1],\n",
       " [2, 0, 2, 2, 1, 2, 1],\n",
       " [2, 0, 2, 2, 2, 0, 0],\n",
       " [2, 0, 2, 2, 2, 1, 1],\n",
       " [2, 0, 2, 2, 2, 2, 1],\n",
       " [2, 0, 3, 0, 0, 0, 0],\n",
       " [2, 0, 3, 0, 0, 1, 0],\n",
       " [2, 0, 3, 0, 0, 2, 0],\n",
       " [2, 0, 3, 0, 1, 0, 0],\n",
       " [2, 0, 3, 0, 1, 1, 0],\n",
       " [2, 0, 3, 0, 1, 2, 0],\n",
       " [2, 0, 3, 0, 2, 0, 0],\n",
       " [2, 0, 3, 0, 2, 1, 0],\n",
       " [2, 0, 3, 0, 2, 2, 0],\n",
       " [2, 0, 3, 1, 0, 0, 0],\n",
       " [2, 0, 3, 1, 0, 1, 0],\n",
       " [2, 0, 3, 1, 0, 2, 1],\n",
       " [2, 0, 3, 1, 1, 0, 0],\n",
       " [2, 0, 3, 1, 1, 1, 1],\n",
       " [2, 0, 3, 1, 1, 2, 1],\n",
       " [2, 0, 3, 1, 2, 0, 0],\n",
       " [2, 0, 3, 1, 2, 1, 1],\n",
       " [2, 0, 3, 1, 2, 2, 1],\n",
       " [2, 0, 3, 2, 0, 0, 0],\n",
       " [2, 0, 3, 2, 0, 1, 0],\n",
       " [2, 0, 3, 2, 0, 2, 1],\n",
       " [2, 0, 3, 2, 1, 0, 0],\n",
       " [2, 0, 3, 2, 1, 1, 1],\n",
       " [2, 0, 3, 2, 1, 2, 1],\n",
       " [2, 0, 3, 2, 2, 0, 0],\n",
       " [2, 0, 3, 2, 2, 1, 1],\n",
       " [2, 0, 3, 2, 2, 2, 1],\n",
       " [2, 1, 0, 0, 0, 0, 0],\n",
       " [2, 1, 0, 0, 0, 1, 0],\n",
       " [2, 1, 0, 0, 0, 2, 0],\n",
       " [2, 1, 0, 0, 1, 0, 0],\n",
       " [2, 1, 0, 0, 1, 1, 0],\n",
       " [2, 1, 0, 0, 1, 2, 0],\n",
       " [2, 1, 0, 0, 2, 0, 0],\n",
       " [2, 1, 0, 0, 2, 1, 0],\n",
       " [2, 1, 0, 0, 2, 2, 0],\n",
       " [2, 1, 0, 1, 0, 0, 0],\n",
       " [2, 1, 0, 1, 0, 1, 0],\n",
       " [2, 1, 0, 1, 0, 2, 1],\n",
       " [2, 1, 0, 1, 1, 0, 0],\n",
       " [2, 1, 0, 1, 1, 1, 0],\n",
       " [2, 1, 0, 1, 1, 2, 1],\n",
       " [2, 1, 0, 1, 2, 0, 0],\n",
       " [2, 1, 0, 1, 2, 1, 1],\n",
       " [2, 1, 0, 1, 2, 2, 1],\n",
       " [2, 1, 0, 2, 0, 0, 0],\n",
       " [2, 1, 0, 2, 0, 1, 0],\n",
       " [2, 1, 0, 2, 0, 2, 0],\n",
       " [2, 1, 0, 2, 1, 0, 0],\n",
       " [2, 1, 0, 2, 1, 1, 0],\n",
       " [2, 1, 0, 2, 1, 2, 1],\n",
       " [2, 1, 0, 2, 2, 0, 0],\n",
       " [2, 1, 0, 2, 2, 1, 1],\n",
       " [2, 1, 0, 2, 2, 2, 1],\n",
       " [2, 1, 1, 0, 0, 0, 0],\n",
       " ...]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "listE"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1728"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(listE)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "data = listE"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Dividindo conjunto em treino e teste"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import random\n",
    "def splitDataset(dataset, splitRatio):\n",
    "    trainSize = int(len(dataset) * splitRatio)\n",
    "    trainSet = []\n",
    "    copy = dataset\n",
    "    while len(trainSet) < trainSize:\n",
    "        index = random.randrange(len(copy))\n",
    "        trainSet.append(copy.pop(index))\n",
    "    return [trainSet, copy]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "data_split = splitDataset(data, 0.67)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "train_set = data_split[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "test_set = data_split[1]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Sumarizando os dados"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Separando os dados por classe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def separateByClass(dataset):\n",
    "    separated = {}\n",
    "    for i in range(len(dataset)):\n",
    "        vector = dataset[i]\n",
    "        if (vector[-1] not in separated):\n",
    "            separated[vector[-1]] = []\n",
    "        separated[vector[-1]].append(vector)\n",
    "    return separated"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Calculando média e desvio padrão"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import math\n",
    "def mean(numbers):\n",
    "    return sum(numbers)/float(len(numbers))\n",
    " \n",
    "def stdev(numbers):\n",
    "    avg = mean(numbers)\n",
    "    variance = sum([pow(x-avg,2) for x in numbers])/float(len(numbers)-1)\n",
    "    return math.sqrt(variance)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Sumarizando os dados"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def summarize(dataset):\n",
    "    summaries = [(mean(attribute), stdev(attribute)) for attribute in zip(*dataset)]\n",
    "    del summaries[-1]\n",
    "    return summaries"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Sumarizando atributos por classe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def summarizeByClass(dataset):\n",
    "    separated = separateByClass(dataset)\n",
    "    summaries = {}\n",
    "    for classValue, instances in separated.items():\n",
    "        summaries[classValue] = summarize(instances)\n",
    "    return summaries"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Realizando a predição"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Calcular a função de densidade da probabilidade gaussiana"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def calculateProbability(x, mean, stdev):\n",
    "    if(stdev == 0):\n",
    "        stdev = 10000\n",
    "    exponent = math.exp(-(math.pow(x-mean,2)/(2*math.pow(stdev,2))))\n",
    "    return (1 / (math.sqrt(2*math.pi) * math.pow(stdev, 2))) * exponent"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Calcular probabilidades das classes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def calculateClassProbabilities(summaries, inputVector):\n",
    "    probabilities = {}\n",
    "    for classValue, classSummaries in summaries.items():\n",
    "        probabilities[classValue] = 1\n",
    "        for i in range(len(classSummaries)):\n",
    "            mean, stdev = classSummaries[i]\n",
    "            x = inputVector[i]\n",
    "            probabilities[classValue] *= calculateProbability(x, mean, stdev)\n",
    "    return probabilities"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Fazer a predição"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def predict(summaries, inputVector):\n",
    "    probabilities = calculateClassProbabilities(summaries, inputVector)\n",
    "    bestLabel, bestProb = None, -1\n",
    "    for classValue, probability in probabilities.items():\n",
    "        if bestLabel is None or probability > bestProb:\n",
    "            bestProb = probability\n",
    "            bestLabel = classValue\n",
    "    return bestLabel"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Fazer várias predições"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def getPredictions(summaries, testSet):\n",
    "    predictions = []\n",
    "    for i in range(len(testSet)):\n",
    "        result = predict(summaries, testSet[i])\n",
    "        predictions.append(result)\n",
    "    return predictions"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Calcular acurácia"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def getAccuracy(testSet, predictions):\n",
    "    correct = 0\n",
    "    for i in range(len(testSet)):\n",
    "        if testSet[i][-1] == predictions[i]:\n",
    "            correct += 1\n",
    "    return (correct/float(len(testSet))) * 100.0"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### Agora vamos Testar:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "summarized_data = summarizeByClass(train_set)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "predictions = getPredictions(summarized_data, test_set)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3,\n",
       " 3]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "predictions"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "accuracy = getAccuracy(test_set, predictions)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "64.62346760070052"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "accuracy"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "## Agora utilizando o sklearn"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from sklearn.naive_bayes import GaussianNB"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "clf = GaussianNB()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "X = []\n",
    "y= []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in train_set:\n",
    "    X.append(i[0:5])\n",
    "    y.append(i[-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[2, 1, 0, 2, 0],\n",
       " [0, 1, 2, 1, 1],\n",
       " [2, 3, 2, 0, 1],\n",
       " [2, 3, 3, 2, 0],\n",
       " [3, 3, 0, 2, 2],\n",
       " [1, 2, 3, 0, 1],\n",
       " [2, 3, 2, 1, 1],\n",
       " [2, 0, 0, 2, 0],\n",
       " [0, 2, 2, 2, 2],\n",
       " [1, 3, 1, 0, 0],\n",
       " [3, 0, 2, 1, 2],\n",
       " [3, 3, 2, 0, 2],\n",
       " [0, 2, 0, 2, 1],\n",
       " [3, 1, 2, 2, 0],\n",
       " [2, 0, 2, 0, 2],\n",
       " [3, 0, 0, 0, 1],\n",
       " [0, 3, 3, 2, 0],\n",
       " [3, 3, 0, 2, 2],\n",
       " [0, 3, 1, 2, 0],\n",
       " [0, 1, 3, 2, 1],\n",
       " [0, 3, 1, 0, 1],\n",
       " [3, 0, 0, 0, 0],\n",
       " [3, 1, 2, 0, 2],\n",
       " [2, 2, 3, 0, 0],\n",
       " [1, 1, 2, 2, 2],\n",
       " [2, 2, 3, 2, 0],\n",
       " [0, 0, 0, 1, 1],\n",
       " [0, 2, 3, 0, 2],\n",
       " [2, 1, 2, 0, 2],\n",
       " [1, 3, 1, 0, 1],\n",
       " [1, 1, 3, 2, 0],\n",
       " [1, 0, 1, 1, 2],\n",
       " [0, 3, 2, 0, 2],\n",
       " [2, 2, 0, 0, 1],\n",
       " [3, 2, 3, 1, 0],\n",
       " [2, 0, 0, 1, 2],\n",
       " [0, 1, 3, 1, 0],\n",
       " [3, 3, 1, 1, 2],\n",
       " [1, 0, 2, 2, 2],\n",
       " [1, 3, 2, 2, 1],\n",
       " [3, 3, 0, 1, 0],\n",
       " [1, 0, 2, 1, 1],\n",
       " [0, 2, 2, 1, 2],\n",
       " [3, 3, 1, 1, 1],\n",
       " [0, 0, 1, 2, 1],\n",
       " [1, 2, 3, 2, 2],\n",
       " [1, 0, 2, 1, 2],\n",
       " [0, 1, 3, 0, 2],\n",
       " [3, 0, 0, 1, 1],\n",
       " [0, 2, 1, 1, 0],\n",
       " [0, 0, 3, 1, 1],\n",
       " [1, 0, 1, 0, 1],\n",
       " [2, 1, 0, 0, 0],\n",
       " [3, 2, 0, 2, 2],\n",
       " [2, 1, 3, 0, 1],\n",
       " [1, 2, 2, 0, 2],\n",
       " [0, 2, 2, 1, 2],\n",
       " [3, 1, 0, 2, 2],\n",
       " [1, 0, 1, 2, 1],\n",
       " [1, 0, 1, 0, 1],\n",
       " [1, 1, 0, 2, 0],\n",
       " [0, 0, 1, 1, 0],\n",
       " [0, 1, 3, 0, 0],\n",
       " [1, 3, 0, 0, 2],\n",
       " [1, 0, 2, 2, 2],\n",
       " [2, 1, 2, 0, 2],\n",
       " [2, 2, 3, 2, 1],\n",
       " [1, 0, 2, 1, 0],\n",
       " [1, 2, 3, 0, 2],\n",
       " [3, 0, 2, 2, 1],\n",
       " [0, 2, 3, 0, 1],\n",
       " [2, 1, 1, 0, 1],\n",
       " [1, 1, 2, 2, 2],\n",
       " [3, 1, 2, 2, 1],\n",
       " [3, 3, 3, 0, 2],\n",
       " [3, 0, 3, 2, 2],\n",
       " [2, 3, 1, 2, 0],\n",
       " [1, 1, 0, 1, 0],\n",
       " [0, 1, 0, 1, 0],\n",
       " [0, 1, 3, 2, 1],\n",
       " [0, 0, 2, 1, 2],\n",
       " [3, 3, 0, 1, 1],\n",
       " [2, 3, 3, 1, 2],\n",
       " [0, 1, 0, 0, 1],\n",
       " [2, 0, 0, 0, 2],\n",
       " [0, 2, 2, 1, 0],\n",
       " [1, 0, 3, 2, 1],\n",
       " [0, 1, 2, 0, 0],\n",
       " [2, 2, 0, 2, 0],\n",
       " [1, 0, 0, 0, 0],\n",
       " [3, 3, 3, 0, 1],\n",
       " [2, 0, 1, 0, 1],\n",
       " [2, 0, 1, 1, 2],\n",
       " [0, 2, 3, 1, 2],\n",
       " [3, 1, 0, 1, 2],\n",
       " [2, 0, 2, 0, 1],\n",
       " [3, 0, 3, 2, 1],\n",
       " [1, 1, 3, 0, 2],\n",
       " [0, 3, 3, 1, 1],\n",
       " [3, 2, 2, 0, 2],\n",
       " [2, 2, 1, 0, 2],\n",
       " [2, 3, 2, 2, 2],\n",
       " [2, 2, 0, 0, 0],\n",
       " [0, 1, 1, 2, 1],\n",
       " [2, 2, 3, 0, 0],\n",
       " [0, 0, 2, 2, 1],\n",
       " [2, 0, 1, 2, 2],\n",
       " [1, 3, 1, 2, 0],\n",
       " [2, 3, 0, 2, 2],\n",
       " [3, 0, 3, 2, 1],\n",
       " [3, 2, 3, 0, 1],\n",
       " [2, 0, 3, 2, 1],\n",
       " [0, 1, 3, 1, 0],\n",
       " [0, 2, 1, 2, 0],\n",
       " [0, 1, 1, 2, 0],\n",
       " [3, 2, 2, 1, 1],\n",
       " [1, 3, 1, 2, 0],\n",
       " [1, 1, 1, 0, 0],\n",
       " [0, 0, 3, 0, 1],\n",
       " [1, 1, 1, 0, 0],\n",
       " [3, 0, 2, 1, 1],\n",
       " [1, 2, 2, 0, 1],\n",
       " [0, 0, 0, 1, 2],\n",
       " [1, 3, 1, 1, 0],\n",
       " [0, 3, 2, 1, 1],\n",
       " [1, 1, 0, 1, 1],\n",
       " [3, 0, 2, 0, 2],\n",
       " [1, 3, 0, 1, 1],\n",
       " [2, 1, 2, 1, 1],\n",
       " [1, 1, 3, 2, 1],\n",
       " [2, 1, 3, 2, 1],\n",
       " [1, 0, 0, 1, 1],\n",
       " [1, 0, 2, 1, 2],\n",
       " [0, 2, 1, 2, 1],\n",
       " [0, 3, 1, 1, 2],\n",
       " [2, 1, 2, 0, 0],\n",
       " [2, 1, 1, 1, 2],\n",
       " [2, 2, 2, 2, 0],\n",
       " [3, 1, 2, 0, 2],\n",
       " [3, 2, 1, 1, 2],\n",
       " [3, 2, 1, 2, 0],\n",
       " [2, 1, 1, 1, 0],\n",
       " [2, 3, 1, 1, 0],\n",
       " [3, 2, 0, 0, 1],\n",
       " [1, 1, 3, 1, 2],\n",
       " [0, 0, 1, 1, 2],\n",
       " [1, 1, 1, 1, 0],\n",
       " [1, 1, 1, 2, 2],\n",
       " [0, 3, 2, 1, 1],\n",
       " [0, 0, 3, 2, 1],\n",
       " [0, 3, 1, 1, 0],\n",
       " [2, 3, 0, 2, 0],\n",
       " [3, 0, 3, 1, 0],\n",
       " [3, 1, 3, 0, 1],\n",
       " [3, 2, 3, 1, 0],\n",
       " [1, 2, 1, 2, 1],\n",
       " [3, 0, 0, 0, 1],\n",
       " [1, 3, 3, 0, 0],\n",
       " [0, 0, 3, 1, 0],\n",
       " [2, 3, 2, 0, 0],\n",
       " [1, 1, 1, 2, 1],\n",
       " [2, 0, 3, 0, 0],\n",
       " [1, 1, 0, 0, 0],\n",
       " [0, 1, 0, 0, 2],\n",
       " [3, 3, 2, 2, 1],\n",
       " [3, 3, 2, 2, 2],\n",
       " [3, 2, 1, 0, 0],\n",
       " [0, 3, 0, 1, 0],\n",
       " [2, 1, 3, 2, 1],\n",
       " [2, 1, 1, 2, 0],\n",
       " [3, 1, 1, 0, 2],\n",
       " [2, 0, 2, 1, 1],\n",
       " [0, 1, 1, 1, 1],\n",
       " [0, 1, 1, 2, 2],\n",
       " [2, 3, 3, 2, 1],\n",
       " [3, 3, 2, 0, 0],\n",
       " [2, 2, 3, 0, 2],\n",
       " [1, 1, 3, 0, 1],\n",
       " [1, 3, 1, 0, 2],\n",
       " [3, 0, 0, 2, 0],\n",
       " [0, 3, 1, 0, 2],\n",
       " [2, 3, 2, 2, 1],\n",
       " [1, 3, 0, 0, 1],\n",
       " [2, 2, 3, 0, 2],\n",
       " [0, 1, 3, 1, 2],\n",
       " [2, 2, 1, 0, 1],\n",
       " [2, 2, 0, 0, 2],\n",
       " [3, 3, 1, 1, 0],\n",
       " [2, 0, 2, 0, 0],\n",
       " [3, 3, 1, 2, 0],\n",
       " [2, 2, 3, 2, 1],\n",
       " [3, 3, 0, 0, 1],\n",
       " [2, 0, 3, 0, 2],\n",
       " [1, 3, 3, 2, 0],\n",
       " [1, 1, 1, 2, 2],\n",
       " [3, 1, 2, 2, 1],\n",
       " [2, 2, 1, 1, 0],\n",
       " [0, 0, 3, 1, 1],\n",
       " [0, 0, 0, 0, 0],\n",
       " [0, 2, 0, 2, 0],\n",
       " [0, 0, 1, 0, 0],\n",
       " [3, 0, 1, 1, 1],\n",
       " [3, 0, 1, 0, 0],\n",
       " [3, 0, 3, 2, 0],\n",
       " [1, 2, 1, 0, 0],\n",
       " [3, 0, 3, 2, 2],\n",
       " [1, 0, 2, 2, 0],\n",
       " [1, 1, 3, 1, 0],\n",
       " [0, 0, 3, 0, 2],\n",
       " [3, 2, 3, 0, 2],\n",
       " [1, 2, 0, 1, 0],\n",
       " [0, 1, 1, 2, 0],\n",
       " [2, 2, 0, 2, 1],\n",
       " [0, 3, 3, 1, 0],\n",
       " [2, 0, 0, 0, 1],\n",
       " [3, 1, 0, 0, 2],\n",
       " [2, 2, 1, 2, 0],\n",
       " [3, 3, 2, 1, 1],\n",
       " [0, 0, 1, 2, 2],\n",
       " [0, 2, 0, 1, 0],\n",
       " [3, 1, 0, 0, 0],\n",
       " [2, 0, 3, 2, 2],\n",
       " [0, 1, 3, 2, 0],\n",
       " [2, 3, 3, 1, 0],\n",
       " [0, 2, 2, 0, 2],\n",
       " [3, 1, 3, 0, 0],\n",
       " [2, 3, 0, 1, 0],\n",
       " [2, 3, 2, 2, 2],\n",
       " [1, 3, 2, 2, 2],\n",
       " [0, 1, 0, 2, 2],\n",
       " [1, 0, 3, 1, 1],\n",
       " [2, 1, 2, 0, 1],\n",
       " [0, 3, 0, 2, 2],\n",
       " [1, 1, 2, 0, 1],\n",
       " [3, 0, 1, 2, 2],\n",
       " [1, 3, 0, 0, 2],\n",
       " [0, 0, 1, 1, 0],\n",
       " [0, 2, 0, 1, 1],\n",
       " [2, 3, 1, 0, 2],\n",
       " [2, 1, 0, 0, 0],\n",
       " [0, 3, 1, 2, 2],\n",
       " [0, 1, 0, 1, 0],\n",
       " [1, 2, 2, 1, 2],\n",
       " [1, 2, 3, 1, 2],\n",
       " [3, 3, 0, 2, 1],\n",
       " [0, 1, 2, 0, 1],\n",
       " [2, 1, 3, 2, 2],\n",
       " [2, 2, 0, 0, 1],\n",
       " [1, 0, 3, 1, 2],\n",
       " [1, 0, 0, 2, 0],\n",
       " [0, 3, 3, 2, 0],\n",
       " [1, 0, 2, 0, 0],\n",
       " [0, 2, 3, 2, 2],\n",
       " [0, 0, 1, 2, 0],\n",
       " [3, 2, 1, 0, 2],\n",
       " [2, 3, 0, 1, 2],\n",
       " [2, 1, 0, 2, 2],\n",
       " [0, 1, 3, 1, 1],\n",
       " [1, 2, 3, 1, 1],\n",
       " [2, 1, 3, 2, 0],\n",
       " [0, 0, 0, 2, 0],\n",
       " [3, 0, 3, 0, 1],\n",
       " [1, 0, 3, 2, 0],\n",
       " [3, 0, 2, 1, 1],\n",
       " [2, 3, 0, 0, 2],\n",
       " [2, 1, 2, 0, 1],\n",
       " [0, 2, 2, 2, 1],\n",
       " [1, 2, 3, 2, 2],\n",
       " [2, 0, 3, 2, 0],\n",
       " [3, 2, 2, 2, 1],\n",
       " [0, 3, 2, 1, 0],\n",
       " [1, 3, 3, 2, 0],\n",
       " [1, 2, 1, 0, 1],\n",
       " [3, 3, 0, 1, 2],\n",
       " [2, 0, 3, 1, 1],\n",
       " [0, 3, 0, 0, 0],\n",
       " [1, 0, 0, 1, 0],\n",
       " [1, 3, 3, 1, 0],\n",
       " [1, 0, 0, 0, 2],\n",
       " [2, 2, 1, 2, 2],\n",
       " [3, 1, 3, 1, 1],\n",
       " [2, 2, 1, 1, 1],\n",
       " [2, 1, 0, 1, 0],\n",
       " [2, 0, 2, 0, 2],\n",
       " [3, 3, 2, 0, 0],\n",
       " [3, 1, 2, 2, 0],\n",
       " [0, 3, 2, 0, 2],\n",
       " [1, 1, 3, 2, 1],\n",
       " [2, 1, 1, 1, 0],\n",
       " [3, 3, 3, 0, 1],\n",
       " [0, 2, 0, 1, 1],\n",
       " [3, 3, 3, 0, 1],\n",
       " [1, 2, 0, 2, 0],\n",
       " [1, 1, 1, 1, 1],\n",
       " [1, 3, 1, 2, 2],\n",
       " [3, 3, 2, 1, 2],\n",
       " [0, 3, 3, 0, 1],\n",
       " [3, 0, 1, 0, 1],\n",
       " [0, 2, 0, 0, 0],\n",
       " [0, 3, 2, 1, 2],\n",
       " [1, 3, 1, 1, 1],\n",
       " [0, 2, 3, 1, 2],\n",
       " [1, 0, 2, 0, 0],\n",
       " [1, 2, 3, 0, 1],\n",
       " [3, 2, 1, 2, 1],\n",
       " [3, 3, 1, 0, 0],\n",
       " [1, 3, 2, 0, 1],\n",
       " [3, 1, 1, 0, 0],\n",
       " [2, 0, 0, 1, 1],\n",
       " [2, 3, 1, 1, 2],\n",
       " [2, 1, 0, 2, 0],\n",
       " [3, 0, 0, 2, 0],\n",
       " [0, 0, 1, 0, 2],\n",
       " [1, 0, 0, 0, 2],\n",
       " [1, 0, 2, 0, 1],\n",
       " [2, 3, 0, 2, 0],\n",
       " [0, 1, 0, 2, 2],\n",
       " [1, 3, 0, 2, 2],\n",
       " [0, 2, 2, 0, 0],\n",
       " [1, 2, 0, 2, 1],\n",
       " [3, 2, 1, 0, 1],\n",
       " [3, 0, 1, 2, 0],\n",
       " [3, 0, 0, 2, 1],\n",
       " [0, 1, 2, 1, 2],\n",
       " [2, 0, 2, 2, 1],\n",
       " [0, 2, 2, 0, 1],\n",
       " [2, 1, 2, 1, 2],\n",
       " [0, 1, 1, 0, 0],\n",
       " [2, 0, 1, 0, 0],\n",
       " [3, 0, 2, 2, 0],\n",
       " [3, 0, 2, 0, 0],\n",
       " [2, 2, 1, 1, 0],\n",
       " [1, 1, 2, 1, 0],\n",
       " [2, 3, 0, 0, 1],\n",
       " [0, 2, 3, 0, 1],\n",
       " [3, 0, 3, 0, 2],\n",
       " [2, 0, 0, 2, 1],\n",
       " [0, 1, 2, 0, 0],\n",
       " [3, 0, 1, 2, 0],\n",
       " [2, 3, 1, 0, 0],\n",
       " [2, 1, 1, 0, 2],\n",
       " [3, 2, 1, 2, 0],\n",
       " [1, 1, 1, 2, 1],\n",
       " [0, 1, 2, 0, 0],\n",
       " [2, 1, 2, 2, 1],\n",
       " [1, 1, 2, 0, 2],\n",
       " [1, 0, 2, 1, 0],\n",
       " [3, 1, 2, 2, 0],\n",
       " [1, 0, 1, 2, 0],\n",
       " [2, 1, 1, 0, 0],\n",
       " [2, 0, 3, 1, 2],\n",
       " [2, 1, 0, 2, 0],\n",
       " [2, 1, 0, 2, 1],\n",
       " [1, 2, 3, 2, 0],\n",
       " [2, 2, 2, 0, 2],\n",
       " [0, 0, 2, 0, 1],\n",
       " [0, 1, 1, 2, 1],\n",
       " [0, 1, 2, 2, 2],\n",
       " [3, 0, 3, 0, 0],\n",
       " [1, 2, 2, 1, 0],\n",
       " [2, 3, 1, 1, 0],\n",
       " [0, 3, 1, 0, 1],\n",
       " [3, 3, 0, 1, 2],\n",
       " [0, 0, 0, 1, 1],\n",
       " [1, 1, 3, 0, 2],\n",
       " [0, 0, 1, 0, 2],\n",
       " [2, 2, 0, 2, 1],\n",
       " [0, 0, 0, 0, 2],\n",
       " [1, 1, 3, 0, 2],\n",
       " [3, 1, 1, 2, 1],\n",
       " [2, 2, 0, 1, 1],\n",
       " [2, 0, 3, 1, 2],\n",
       " [0, 1, 2, 2, 1],\n",
       " [3, 1, 0, 0, 0],\n",
       " [3, 0, 2, 2, 0],\n",
       " [0, 2, 0, 0, 2],\n",
       " [3, 2, 0, 0, 0],\n",
       " [2, 3, 0, 2, 1],\n",
       " [2, 1, 2, 2, 0],\n",
       " [2, 2, 3, 2, 2],\n",
       " [0, 0, 3, 0, 2],\n",
       " [1, 2, 3, 1, 0],\n",
       " [0, 0, 3, 0, 1],\n",
       " [0, 2, 3, 1, 0],\n",
       " [1, 0, 2, 0, 1],\n",
       " [1, 2, 2, 0, 1],\n",
       " [2, 0, 1, 1, 0],\n",
       " [3, 3, 3, 0, 0],\n",
       " [1, 1, 0, 2, 2],\n",
       " [3, 1, 2, 0, 0],\n",
       " [1, 2, 3, 2, 1],\n",
       " [2, 3, 1, 0, 1],\n",
       " [1, 3, 1, 0, 2],\n",
       " [1, 2, 0, 2, 0],\n",
       " [0, 3, 0, 1, 2],\n",
       " [3, 1, 1, 1, 0],\n",
       " [2, 1, 3, 0, 1],\n",
       " [2, 1, 0, 1, 2],\n",
       " [0, 2, 0, 2, 1],\n",
       " [2, 0, 2, 1, 0],\n",
       " [0, 1, 1, 1, 0],\n",
       " [1, 2, 0, 0, 1],\n",
       " [3, 2, 3, 1, 1],\n",
       " [0, 3, 0, 0, 1],\n",
       " [3, 3, 0, 2, 0],\n",
       " [3, 0, 2, 2, 2],\n",
       " [3, 3, 1, 2, 2],\n",
       " [2, 2, 1, 1, 2],\n",
       " [2, 1, 0, 2, 1],\n",
       " [3, 2, 3, 2, 1],\n",
       " [2, 3, 0, 1, 1],\n",
       " [3, 2, 0, 2, 2],\n",
       " [2, 3, 3, 0, 1],\n",
       " [0, 2, 3, 2, 2],\n",
       " [0, 3, 1, 1, 0],\n",
       " [3, 0, 2, 1, 1],\n",
       " [1, 0, 2, 1, 1],\n",
       " [1, 1, 0, 0, 2],\n",
       " [1, 3, 1, 0, 0],\n",
       " [1, 0, 2, 2, 1],\n",
       " [3, 0, 2, 0, 2],\n",
       " [1, 1, 0, 1, 2],\n",
       " [1, 1, 0, 0, 2],\n",
       " [1, 1, 2, 1, 1],\n",
       " [0, 0, 0, 0, 1],\n",
       " [2, 1, 1, 1, 0],\n",
       " [0, 0, 1, 1, 2],\n",
       " [0, 3, 3, 0, 2],\n",
       " [3, 1, 0, 0, 0],\n",
       " [0, 2, 0, 0, 1],\n",
       " [2, 2, 3, 1, 2],\n",
       " [0, 1, 3, 0, 0],\n",
       " [3, 2, 1, 0, 1],\n",
       " [2, 0, 3, 2, 2],\n",
       " [3, 2, 3, 1, 1],\n",
       " [1, 1, 1, 0, 2],\n",
       " [1, 1, 2, 2, 0],\n",
       " [0, 2, 3, 1, 1],\n",
       " [0, 2, 3, 0, 0],\n",
       " [0, 0, 3, 0, 0],\n",
       " [1, 3, 0, 0, 1],\n",
       " [0, 1, 2, 0, 2],\n",
       " [0, 3, 3, 0, 0],\n",
       " [0, 1, 1, 0, 2],\n",
       " [0, 3, 2, 0, 1],\n",
       " [1, 3, 2, 2, 1],\n",
       " [0, 0, 0, 0, 0],\n",
       " [1, 1, 3, 1, 1],\n",
       " [0, 1, 3, 2, 2],\n",
       " [0, 1, 2, 2, 2],\n",
       " [2, 0, 1, 0, 0],\n",
       " [3, 0, 3, 0, 2],\n",
       " [3, 1, 2, 0, 0],\n",
       " [1, 3, 0, 0, 2],\n",
       " [3, 2, 3, 2, 0],\n",
       " [0, 3, 2, 1, 1],\n",
       " [0, 2, 0, 1, 2],\n",
       " [1, 0, 0, 1, 2],\n",
       " [3, 1, 1, 2, 2],\n",
       " [3, 3, 3, 2, 1],\n",
       " [1, 0, 0, 0, 0],\n",
       " [2, 0, 2, 1, 2],\n",
       " [2, 0, 2, 2, 0],\n",
       " [2, 0, 1, 1, 0],\n",
       " [3, 1, 2, 1, 0],\n",
       " [2, 3, 1, 1, 2],\n",
       " [2, 1, 2, 1, 2],\n",
       " [3, 2, 0, 0, 0],\n",
       " [1, 2, 0, 1, 0],\n",
       " [3, 2, 1, 1, 0],\n",
       " [0, 0, 0, 0, 2],\n",
       " [1, 1, 2, 0, 1],\n",
       " [3, 1, 1, 1, 1],\n",
       " [0, 0, 0, 2, 0],\n",
       " [2, 1, 2, 1, 1],\n",
       " [2, 0, 2, 2, 1],\n",
       " [3, 2, 1, 2, 2],\n",
       " [2, 3, 2, 0, 1],\n",
       " [0, 1, 2, 1, 0],\n",
       " [3, 1, 3, 0, 1],\n",
       " [1, 3, 2, 2, 2],\n",
       " [3, 1, 0, 2, 0],\n",
       " [0, 1, 3, 2, 2],\n",
       " [3, 2, 0, 2, 1],\n",
       " [3, 0, 3, 2, 0],\n",
       " [2, 1, 2, 1, 0],\n",
       " [0, 2, 1, 1, 0],\n",
       " [0, 3, 0, 1, 0],\n",
       " [1, 2, 0, 1, 2],\n",
       " [1, 1, 0, 0, 1],\n",
       " [0, 3, 3, 2, 1],\n",
       " [1, 1, 2, 1, 0],\n",
       " [2, 0, 3, 2, 0],\n",
       " [2, 1, 2, 0, 0],\n",
       " [3, 3, 0, 2, 0],\n",
       " [2, 1, 2, 1, 2],\n",
       " [1, 1, 0, 1, 1],\n",
       " [3, 2, 2, 2, 0],\n",
       " [1, 1, 2, 2, 1],\n",
       " [2, 1, 3, 1, 1],\n",
       " [3, 1, 3, 0, 2],\n",
       " [3, 3, 0, 0, 0],\n",
       " [1, 0, 3, 2, 2],\n",
       " [0, 1, 0, 2, 1],\n",
       " [2, 3, 0, 2, 0],\n",
       " [3, 1, 0, 1, 0],\n",
       " [3, 1, 3, 1, 2],\n",
       " [3, 2, 2, 0, 0],\n",
       " [0, 3, 3, 1, 1],\n",
       " [2, 1, 1, 2, 1],\n",
       " [0, 0, 3, 1, 1],\n",
       " [1, 2, 3, 0, 1],\n",
       " [1, 0, 1, 1, 2],\n",
       " [1, 3, 2, 0, 1],\n",
       " [0, 2, 3, 0, 1],\n",
       " [2, 2, 3, 1, 2],\n",
       " [3, 2, 1, 2, 1],\n",
       " [2, 0, 3, 2, 1],\n",
       " [3, 0, 1, 0, 2],\n",
       " [1, 3, 2, 1, 1],\n",
       " [3, 3, 1, 2, 1],\n",
       " [3, 3, 1, 0, 2],\n",
       " [1, 1, 1, 0, 1],\n",
       " [1, 3, 3, 0, 0],\n",
       " [2, 3, 3, 2, 0],\n",
       " [0, 3, 0, 0, 1],\n",
       " [0, 0, 2, 2, 0],\n",
       " [2, 1, 0, 2, 1],\n",
       " [2, 0, 1, 1, 1],\n",
       " [0, 1, 3, 0, 2],\n",
       " [0, 0, 0, 2, 1],\n",
       " [3, 2, 0, 1, 2],\n",
       " [1, 1, 0, 1, 2],\n",
       " [2, 1, 2, 1, 0],\n",
       " [1, 3, 1, 1, 1],\n",
       " [3, 1, 1, 2, 1],\n",
       " [1, 2, 0, 0, 0],\n",
       " [1, 3, 1, 2, 2],\n",
       " [3, 2, 0, 2, 0],\n",
       " [3, 3, 2, 0, 1],\n",
       " [1, 3, 3, 1, 2],\n",
       " [3, 2, 3, 1, 1],\n",
       " [3, 0, 3, 1, 0],\n",
       " [2, 2, 1, 0, 0],\n",
       " [2, 0, 1, 0, 2],\n",
       " [3, 3, 3, 1, 0],\n",
       " [1, 3, 2, 0, 1],\n",
       " [0, 0, 3, 0, 2],\n",
       " [3, 1, 1, 1, 0],\n",
       " [0, 2, 1, 0, 2],\n",
       " [3, 3, 1, 0, 1],\n",
       " [1, 1, 1, 2, 1],\n",
       " [1, 2, 2, 1, 2],\n",
       " [3, 1, 1, 1, 1],\n",
       " [1, 0, 2, 0, 1],\n",
       " [1, 2, 1, 0, 1],\n",
       " [0, 0, 0, 1, 1],\n",
       " [1, 2, 2, 2, 1],\n",
       " [2, 1, 2, 1, 0],\n",
       " [1, 0, 1, 1, 0],\n",
       " [1, 2, 3, 1, 2],\n",
       " [2, 3, 1, 0, 2],\n",
       " [2, 2, 2, 2, 0],\n",
       " [0, 2, 3, 0, 2],\n",
       " [2, 1, 1, 2, 2],\n",
       " [3, 2, 0, 2, 0],\n",
       " [2, 2, 2, 2, 2],\n",
       " [2, 0, 3, 0, 1],\n",
       " [3, 0, 0, 0, 0],\n",
       " [2, 0, 0, 0, 2],\n",
       " [3, 0, 1, 2, 1],\n",
       " [1, 2, 0, 0, 2],\n",
       " [2, 1, 3, 1, 2],\n",
       " [3, 1, 1, 2, 0],\n",
       " [1, 1, 1, 1, 1],\n",
       " [2, 0, 3, 0, 2],\n",
       " [1, 2, 1, 1, 2],\n",
       " [3, 1, 0, 2, 2],\n",
       " [0, 1, 3, 0, 0],\n",
       " [2, 2, 0, 2, 2],\n",
       " [2, 2, 3, 0, 1],\n",
       " [2, 1, 3, 2, 1],\n",
       " [3, 2, 3, 0, 0],\n",
       " [0, 1, 2, 1, 2],\n",
       " [0, 2, 0, 1, 2],\n",
       " [1, 0, 0, 2, 2],\n",
       " [2, 1, 1, 0, 2],\n",
       " [3, 0, 2, 0, 1],\n",
       " [2, 1, 2, 2, 2],\n",
       " [0, 0, 2, 2, 0],\n",
       " [0, 0, 2, 2, 1],\n",
       " [2, 1, 1, 1, 2],\n",
       " [2, 3, 1, 0, 2],\n",
       " [3, 3, 3, 1, 2],\n",
       " [0, 2, 3, 2, 2],\n",
       " [3, 0, 2, 1, 0],\n",
       " [0, 1, 1, 0, 0],\n",
       " [2, 2, 1, 0, 1],\n",
       " [1, 2, 3, 0, 2],\n",
       " [1, 0, 1, 0, 2],\n",
       " [1, 1, 1, 1, 1],\n",
       " [1, 3, 0, 2, 0],\n",
       " [0, 0, 1, 1, 1],\n",
       " [3, 1, 1, 2, 0],\n",
       " [2, 1, 1, 1, 1],\n",
       " [0, 3, 1, 2, 1],\n",
       " [2, 2, 0, 0, 2],\n",
       " [2, 1, 3, 1, 1],\n",
       " [0, 3, 0, 0, 2],\n",
       " [2, 1, 1, 0, 0],\n",
       " [3, 2, 0, 2, 1],\n",
       " [2, 2, 0, 1, 0],\n",
       " [2, 3, 0, 0, 0],\n",
       " [2, 3, 1, 2, 1],\n",
       " [2, 3, 3, 2, 1],\n",
       " [3, 3, 2, 2, 1],\n",
       " [3, 1, 0, 2, 0],\n",
       " [1, 1, 0, 0, 2],\n",
       " [1, 1, 1, 0, 2],\n",
       " [1, 2, 2, 1, 0],\n",
       " [1, 3, 1, 2, 1],\n",
       " [2, 2, 1, 2, 0],\n",
       " [2, 0, 2, 0, 0],\n",
       " [2, 0, 1, 2, 1],\n",
       " [3, 1, 0, 1, 2],\n",
       " [3, 1, 3, 1, 2],\n",
       " [3, 1, 3, 0, 2],\n",
       " [2, 3, 1, 2, 0],\n",
       " [0, 3, 3, 0, 2],\n",
       " [3, 3, 0, 1, 2],\n",
       " [2, 0, 3, 1, 1],\n",
       " [3, 0, 3, 1, 2],\n",
       " [2, 2, 0, 2, 0],\n",
       " [0, 0, 2, 2, 2],\n",
       " [2, 0, 0, 2, 2],\n",
       " [0, 1, 0, 0, 2],\n",
       " [1, 2, 2, 0, 0],\n",
       " [1, 3, 1, 0, 1],\n",
       " [0, 1, 0, 2, 2],\n",
       " [2, 2, 2, 0, 2],\n",
       " [3, 1, 1, 0, 0],\n",
       " [0, 0, 2, 1, 1],\n",
       " [0, 0, 3, 2, 2],\n",
       " [3, 1, 1, 0, 1],\n",
       " [2, 2, 2, 1, 2],\n",
       " [0, 0, 2, 2, 2],\n",
       " [2, 1, 0, 1, 1],\n",
       " [0, 2, 3, 0, 0],\n",
       " [2, 2, 2, 1, 1],\n",
       " [1, 0, 3, 0, 2],\n",
       " [2, 3, 2, 2, 0],\n",
       " [1, 1, 1, 1, 2],\n",
       " [0, 1, 2, 0, 2],\n",
       " [1, 3, 2, 1, 2],\n",
       " [3, 3, 1, 2, 0],\n",
       " [1, 0, 1, 2, 1],\n",
       " [1, 3, 3, 1, 1],\n",
       " [0, 0, 1, 2, 1],\n",
       " [3, 3, 0, 1, 0],\n",
       " [2, 3, 1, 2, 0],\n",
       " [1, 0, 3, 0, 1],\n",
       " [2, 0, 0, 1, 0],\n",
       " [2, 3, 1, 0, 0],\n",
       " [3, 2, 2, 1, 1],\n",
       " [1, 2, 0, 1, 2],\n",
       " [1, 3, 3, 2, 1],\n",
       " [1, 1, 2, 0, 1],\n",
       " [1, 3, 1, 1, 2],\n",
       " [3, 3, 0, 0, 2],\n",
       " [1, 0, 3, 0, 1],\n",
       " [0, 2, 3, 2, 1],\n",
       " [3, 3, 1, 2, 2],\n",
       " [0, 0, 0, 2, 1],\n",
       " [0, 1, 1, 1, 1],\n",
       " [1, 1, 3, 2, 2],\n",
       " [2, 3, 2, 1, 0],\n",
       " [0, 2, 2, 2, 0],\n",
       " [0, 2, 0, 1, 0],\n",
       " [0, 3, 0, 1, 1],\n",
       " [1, 3, 0, 1, 1],\n",
       " [3, 0, 1, 1, 1],\n",
       " [3, 0, 1, 0, 1],\n",
       " [0, 1, 2, 0, 1],\n",
       " [1, 0, 3, 0, 1],\n",
       " [2, 0, 0, 1, 0],\n",
       " [1, 0, 1, 2, 2],\n",
       " [3, 2, 2, 2, 1],\n",
       " [3, 1, 2, 1, 1],\n",
       " [3, 0, 1, 1, 2],\n",
       " [3, 3, 3, 1, 1],\n",
       " [0, 2, 1, 1, 0],\n",
       " [3, 3, 1, 2, 2],\n",
       " [3, 3, 3, 1, 2],\n",
       " [3, 0, 3, 1, 2],\n",
       " [0, 0, 0, 1, 2],\n",
       " [3, 0, 3, 0, 0],\n",
       " [2, 1, 1, 2, 2],\n",
       " [3, 3, 0, 1, 0],\n",
       " [3, 2, 0, 1, 0],\n",
       " [0, 0, 3, 2, 2],\n",
       " [2, 1, 0, 1, 2],\n",
       " [1, 1, 1, 2, 0],\n",
       " [0, 1, 1, 2, 1],\n",
       " [1, 2, 1, 1, 0],\n",
       " [1, 3, 0, 1, 2],\n",
       " [0, 3, 0, 0, 0],\n",
       " [3, 2, 3, 2, 2],\n",
       " [1, 1, 0, 1, 1],\n",
       " [1, 2, 2, 0, 1],\n",
       " [1, 0, 0, 2, 1],\n",
       " [2, 1, 2, 0, 0],\n",
       " [2, 3, 0, 2, 1],\n",
       " [2, 0, 2, 0, 2],\n",
       " [1, 1, 3, 1, 0],\n",
       " [3, 1, 3, 0, 2],\n",
       " [2, 3, 1, 2, 1],\n",
       " [2, 2, 3, 1, 2],\n",
       " [2, 1, 0, 0, 2],\n",
       " [1, 2, 1, 2, 0],\n",
       " [3, 0, 0, 2, 2],\n",
       " [1, 3, 2, 2, 1],\n",
       " [0, 2, 1, 2, 0],\n",
       " [0, 0, 1, 0, 0],\n",
       " [0, 1, 1, 0, 2],\n",
       " [2, 1, 3, 1, 1],\n",
       " [0, 3, 0, 1, 1],\n",
       " [0, 2, 1, 0, 0],\n",
       " [0, 0, 2, 1, 2],\n",
       " [0, 0, 1, 2, 2],\n",
       " [1, 3, 3, 2, 1],\n",
       " [1, 0, 3, 1, 2],\n",
       " [0, 3, 0, 2, 2],\n",
       " [2, 1, 3, 2, 0],\n",
       " [1, 1, 1, 1, 0],\n",
       " [2, 3, 1, 2, 2],\n",
       " [3, 1, 3, 2, 0],\n",
       " [3, 0, 3, 1, 1],\n",
       " [0, 0, 2, 0, 0],\n",
       " [1, 2, 0, 1, 1],\n",
       " [1, 0, 3, 2, 1],\n",
       " [0, 0, 0, 2, 1],\n",
       " [3, 1, 2, 1, 0],\n",
       " [2, 2, 2, 0, 1],\n",
       " [2, 3, 2, 2, 1],\n",
       " [1, 2, 2, 0, 2],\n",
       " [3, 2, 0, 1, 1],\n",
       " [1, 0, 0, 2, 1],\n",
       " [0, 0, 1, 2, 1],\n",
       " [1, 1, 3, 0, 1],\n",
       " [0, 3, 0, 2, 1],\n",
       " [0, 2, 0, 2, 0],\n",
       " [2, 0, 2, 2, 2],\n",
       " [3, 0, 3, 2, 1],\n",
       " [0, 1, 1, 1, 2],\n",
       " [1, 1, 2, 0, 2],\n",
       " [2, 2, 2, 1, 0],\n",
       " [0, 3, 2, 2, 0],\n",
       " [2, 1, 1, 0, 2],\n",
       " [2, 3, 2, 2, 1],\n",
       " [3, 1, 2, 2, 2],\n",
       " [3, 2, 3, 0, 0],\n",
       " [2, 0, 2, 1, 2],\n",
       " [2, 2, 1, 1, 1],\n",
       " [0, 3, 3, 2, 1],\n",
       " [3, 3, 0, 2, 2],\n",
       " [2, 0, 0, 2, 0],\n",
       " [2, 3, 3, 2, 1],\n",
       " [3, 1, 2, 0, 1],\n",
       " [3, 1, 3, 2, 2],\n",
       " [3, 0, 3, 0, 1],\n",
       " [0, 1, 0, 0, 2],\n",
       " [1, 0, 1, 2, 0],\n",
       " [1, 1, 2, 0, 0],\n",
       " [2, 1, 1, 1, 2],\n",
       " [0, 1, 1, 0, 0],\n",
       " [2, 0, 1, 1, 1],\n",
       " [2, 0, 0, 0, 2],\n",
       " [2, 1, 2, 2, 0],\n",
       " [2, 0, 3, 1, 2],\n",
       " [3, 0, 0, 0, 1],\n",
       " [1, 3, 0, 1, 1],\n",
       " [3, 0, 3, 0, 1],\n",
       " [1, 0, 3, 1, 1],\n",
       " [0, 3, 2, 2, 0],\n",
       " [1, 1, 1, 0, 1],\n",
       " [1, 3, 1, 0, 0],\n",
       " [3, 0, 0, 1, 2],\n",
       " [2, 2, 0, 1, 1],\n",
       " [2, 0, 3, 2, 2],\n",
       " [3, 2, 2, 0, 2],\n",
       " [0, 1, 0, 2, 0],\n",
       " [2, 2, 0, 1, 2],\n",
       " [2, 3, 3, 0, 2],\n",
       " [0, 3, 2, 0, 1],\n",
       " [1, 3, 1, 2, 1],\n",
       " [1, 0, 1, 1, 1],\n",
       " [3, 2, 1, 2, 2],\n",
       " [1, 3, 2, 2, 0],\n",
       " [0, 2, 1, 1, 2],\n",
       " [1, 2, 2, 2, 0],\n",
       " [0, 3, 3, 0, 2],\n",
       " [2, 3, 3, 0, 0],\n",
       " [3, 1, 0, 1, 0],\n",
       " [3, 1, 2, 2, 2],\n",
       " [0, 2, 1, 0, 1],\n",
       " [1, 2, 0, 2, 2],\n",
       " [0, 0, 1, 0, 2],\n",
       " [3, 2, 3, 0, 0],\n",
       " [3, 2, 3, 1, 2],\n",
       " [1, 1, 1, 2, 0],\n",
       " [2, 1, 0, 0, 0],\n",
       " [2, 2, 3, 1, 0],\n",
       " [0, 3, 1, 0, 2],\n",
       " [2, 0, 1, 1, 1],\n",
       " [1, 2, 1, 1, 1],\n",
       " [0, 3, 0, 2, 0],\n",
       " [3, 0, 0, 1, 0],\n",
       " [2, 2, 0, 0, 0],\n",
       " [0, 3, 3, 2, 1],\n",
       " [3, 0, 1, 1, 0],\n",
       " [2, 0, 1, 0, 0],\n",
       " [2, 1, 1, 1, 1],\n",
       " [3, 0, 0, 2, 1],\n",
       " [1, 0, 3, 1, 0],\n",
       " [0, 2, 3, 1, 0],\n",
       " [1, 1, 1, 1, 2],\n",
       " [2, 1, 1, 0, 0],\n",
       " [3, 0, 3, 1, 1],\n",
       " [0, 2, 1, 0, 2],\n",
       " [1, 2, 0, 0, 2],\n",
       " [2, 1, 3, 1, 0],\n",
       " [3, 2, 3, 2, 0],\n",
       " [2, 2, 2, 1, 1],\n",
       " [2, 0, 2, 1, 2],\n",
       " [3, 2, 0, 1, 1],\n",
       " [3, 2, 1, 1, 0],\n",
       " [3, 2, 2, 1, 0],\n",
       " [2, 2, 3, 2, 0],\n",
       " [0, 1, 3, 1, 1],\n",
       " [0, 3, 1, 2, 0],\n",
       " [3, 1, 2, 0, 0],\n",
       " [0, 3, 1, 2, 2],\n",
       " [1, 1, 2, 1, 1],\n",
       " [1, 2, 1, 1, 1],\n",
       " [3, 1, 1, 1, 2],\n",
       " [3, 3, 3, 1, 0],\n",
       " [2, 0, 0, 0, 1],\n",
       " [3, 1, 3, 0, 0],\n",
       " [3, 1, 3, 2, 1],\n",
       " [3, 2, 1, 1, 2],\n",
       " [1, 3, 3, 0, 1],\n",
       " [3, 3, 3, 2, 2],\n",
       " [3, 0, 0, 1, 1],\n",
       " [0, 3, 1, 1, 1],\n",
       " [3, 1, 2, 1, 0],\n",
       " [0, 2, 3, 1, 0],\n",
       " [0, 0, 2, 0, 0],\n",
       " [0, 1, 0, 1, 2],\n",
       " [0, 3, 0, 2, 1],\n",
       " [0, 2, 2, 0, 1],\n",
       " [2, 3, 1, 2, 1],\n",
       " [1, 1, 3, 1, 2],\n",
       " [3, 0, 1, 2, 0],\n",
       " [0, 0, 1, 1, 2],\n",
       " [2, 3, 1, 1, 2],\n",
       " [1, 3, 0, 2, 0],\n",
       " [0, 2, 2, 2, 0],\n",
       " [1, 3, 2, 0, 0],\n",
       " [0, 0, 2, 0, 2],\n",
       " [3, 3, 3, 2, 1],\n",
       " [2, 3, 2, 1, 2],\n",
       " [1, 2, 1, 0, 1],\n",
       " [1, 2, 2, 2, 1],\n",
       " [1, 2, 2, 2, 2],\n",
       " [1, 3, 1, 1, 0],\n",
       " [3, 0, 0, 0, 2],\n",
       " [2, 3, 1, 0, 1],\n",
       " [0, 0, 2, 1, 1],\n",
       " [1, 3, 2, 1, 0],\n",
       " [1, 0, 1, 0, 0],\n",
       " [2, 2, 1, 2, 1],\n",
       " [1, 0, 3, 1, 0],\n",
       " [1, 2, 3, 0, 0],\n",
       " [3, 2, 3, 0, 1],\n",
       " [2, 1, 3, 2, 0],\n",
       " [1, 2, 2, 1, 1],\n",
       " [3, 2, 2, 2, 0],\n",
       " [0, 3, 2, 1, 0],\n",
       " [0, 3, 3, 1, 1],\n",
       " [2, 2, 0, 0, 1],\n",
       " [3, 1, 3, 2, 0],\n",
       " [2, 0, 2, 1, 0],\n",
       " [2, 2, 0, 1, 0],\n",
       " [2, 3, 3, 0, 2],\n",
       " [1, 1, 0, 1, 2],\n",
       " [0, 0, 3, 1, 0],\n",
       " [3, 1, 3, 0, 0],\n",
       " [3, 2, 3, 1, 2],\n",
       " [3, 1, 2, 2, 1],\n",
       " [0, 0, 3, 2, 2],\n",
       " [2, 3, 2, 0, 2],\n",
       " [1, 2, 0, 2, 2],\n",
       " [1, 2, 3, 2, 1],\n",
       " [0, 0, 2, 1, 0],\n",
       " [1, 2, 0, 2, 2],\n",
       " [2, 2, 1, 2, 2],\n",
       " [3, 3, 0, 2, 1],\n",
       " [0, 2, 1, 0, 0],\n",
       " [0, 1, 3, 0, 1],\n",
       " [3, 0, 2, 1, 2],\n",
       " [3, 0, 1, 0, 0],\n",
       " [0, 2, 1, 0, 0],\n",
       " [2, 2, 3, 0, 2],\n",
       " [2, 0, 1, 2, 1],\n",
       " [0, 1, 0, 0, 1],\n",
       " [0, 2, 2, 1, 1],\n",
       " [0, 3, 0, 1, 2],\n",
       " [0, 3, 2, 0, 0],\n",
       " [1, 1, 2, 2, 2],\n",
       " [0, 3, 2, 2, 2],\n",
       " [3, 2, 3, 2, 0],\n",
       " [2, 3, 0, 2, 2],\n",
       " [1, 2, 1, 0, 2],\n",
       " [2, 1, 0, 0, 1],\n",
       " [3, 3, 3, 0, 0],\n",
       " [0, 0, 2, 2, 0],\n",
       " [1, 0, 0, 1, 0],\n",
       " [0, 2, 0, 0, 1],\n",
       " [0, 3, 1, 1, 1],\n",
       " [1, 2, 2, 2, 1],\n",
       " [2, 2, 1, 1, 2],\n",
       " [0, 1, 3, 1, 2],\n",
       " [3, 3, 2, 0, 2],\n",
       " [0, 2, 0, 1, 1],\n",
       " [0, 0, 3, 1, 0],\n",
       " [2, 2, 3, 2, 2],\n",
       " [2, 3, 0, 1, 0],\n",
       " [3, 1, 0, 2, 1],\n",
       " [2, 2, 1, 0, 2],\n",
       " [3, 3, 1, 1, 0],\n",
       " [2, 3, 0, 1, 1],\n",
       " [1, 1, 3, 2, 1],\n",
       " [2, 2, 2, 2, 1],\n",
       " [2, 0, 2, 2, 0],\n",
       " [1, 1, 2, 1, 2],\n",
       " [3, 2, 2, 1, 2],\n",
       " [2, 0, 3, 0, 1],\n",
       " [3, 1, 3, 2, 1],\n",
       " [2, 1, 3, 0, 1],\n",
       " [3, 1, 1, 2, 2],\n",
       " [3, 1, 3, 2, 0],\n",
       " [3, 3, 3, 2, 0],\n",
       " [3, 1, 0, 2, 2],\n",
       " [2, 1, 0, 2, 2],\n",
       " [2, 2, 0, 1, 2],\n",
       " [2, 1, 0, 0, 2],\n",
       " [1, 3, 2, 1, 2],\n",
       " [2, 0, 1, 2, 2],\n",
       " [1, 1, 0, 2, 1],\n",
       " [2, 2, 2, 1, 0],\n",
       " [2, 0, 2, 2, 0],\n",
       " [0, 3, 2, 2, 1],\n",
       " [3, 2, 0, 0, 0],\n",
       " [0, 3, 1, 1, 2],\n",
       " [1, 3, 2, 2, 0],\n",
       " [2, 1, 1, 2, 1],\n",
       " [2, 2, 2, 0, 2],\n",
       " [1, 0, 0, 2, 2],\n",
       " [1, 1, 3, 2, 2],\n",
       " [2, 2, 1, 0, 2],\n",
       " [3, 2, 2, 2, 0],\n",
       " [3, 1, 2, 2, 2],\n",
       " [0, 1, 1, 2, 2],\n",
       " [3, 2, 0, 2, 0],\n",
       " [2, 3, 3, 0, 0],\n",
       " [1, 0, 1, 0, 2],\n",
       " [0, 1, 2, 1, 2],\n",
       " [0, 2, 3, 2, 0],\n",
       " [2, 3, 3, 0, 2],\n",
       " [2, 1, 3, 2, 2],\n",
       " [3, 1, 0, 2, 1],\n",
       " [2, 1, 0, 1, 2],\n",
       " [3, 2, 2, 0, 1],\n",
       " [0, 3, 3, 2, 2],\n",
       " [2, 3, 2, 1, 1],\n",
       " [1, 1, 2, 1, 0],\n",
       " [3, 3, 2, 1, 0],\n",
       " [3, 1, 1, 0, 0],\n",
       " [1, 1, 1, 0, 1],\n",
       " [2, 3, 1, 1, 1],\n",
       " [0, 3, 3, 1, 2],\n",
       " [0, 0, 1, 0, 1],\n",
       " [0, 2, 2, 2, 1],\n",
       " [0, 0, 3, 2, 0],\n",
       " [3, 2, 2, 0, 1],\n",
       " [1, 2, 0, 1, 1],\n",
       " [3, 1, 0, 1, 2],\n",
       " [2, 1, 1, 0, 1],\n",
       " [3, 0, 2, 0, 1],\n",
       " [2, 1, 2, 1, 1],\n",
       " ...]"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 3,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 2,\n",
       " 1,\n",
       " 2,\n",
       " 1,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 3,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 3,\n",
       " 3,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 3,\n",
       " 3,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 3,\n",
       " 0,\n",
       " 1,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 2,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " 1,\n",
       " 0,\n",
       " 1,\n",
       " 0,\n",
       " 0,\n",
       " 0,\n",
       " 2,\n",
       " 0,\n",
       " 0,\n",
       " 1,\n",
       " ...]"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "GaussianNB(priors=None)"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "clf.fit(X, y)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "test_X = []\n",
    "test_y = []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "for i in test_set:\n",
    "    test_X.append(i[0:5])\n",
    "    test_y.append(i[-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.71103327495621715"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "clf.score(test_X, test_y)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
